projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ede14f
)
Initialize LiveOutInfo's APInt members to zero, as APInt's
author
Dan Gohman
<gohman@apple.com>
Fri, 27 Mar 2009 23:51:02 +0000
(23:51 +0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 27 Mar 2009 23:51:02 +0000
(23:51 +0000)
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
lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
index 8ab3487a9582e151a0bde03c3599249af4a9299a..a9c3d6a523b13359519eb0e1d1202d0c49512df8 100644
(file)
--- 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