diff options
author | Dan Gohman <gohman@apple.com> | 2009-03-27 23:51:02 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-03-27 23:51:02 +0000 |
commit | 84d08db733f64d9c3da4d534a3c9b553e0f77ed8 (patch) | |
tree | 6341ede9d90e4370f3fb4cd7d3b43a819e502bc2 /lib/CodeGen/SelectionDAG | |
parent | 0ede14f5c0d9ff8bd30b467367eabad881fa6898 (diff) | |
download | external_llvm-84d08db733f64d9c3da4d534a3c9b553e0f77ed8.zip external_llvm-84d08db733f64d9c3da4d534a3c9b553e0f77ed8.tar.gz external_llvm-84d08db733f64d9c3da4d534a3c9b553e0f77ed8.tar.bz2 |
Initialize LiveOutInfo's APInt members to zero, as APInt's
default constructor produces an uninitialized APInt.
This fixes PR3896.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuild.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h index 8ab3487..a9c3d6a 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h @@ -135,7 +135,7 @@ public: struct LiveOutInfo { unsigned NumSignBits; APInt KnownOne, KnownZero; - LiveOutInfo() : NumSignBits(0) {} + LiveOutInfo() : NumSignBits(0), KnownOne(1, 0), KnownZero(1, 0) {} }; /// LiveOutRegInfo - Information about live out vregs, indexed by their |