summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-03-27 23:51:02 +0000
committerDan Gohman <gohman@apple.com>2009-03-27 23:51:02 +0000
commit6d75876473d5e83334cd9b36b7d9d78c4e52be28 (patch)
tree56041313ec48db42a7cd0a1f786b444aa07e8e05 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
parent8aa6bf5b8e38296387117d52df42b7e7dcebcfc4 (diff)
downloadbcm5719-llvm-6d75876473d5e83334cd9b36b7d9d78c4e52be28.tar.gz
bcm5719-llvm-6d75876473d5e83334cd9b36b7d9d78c4e52be28.zip
Initialize LiveOutInfo's APInt members to zero, as APInt's
default constructor produces an uninitialized APInt. This fixes PR3896. llvm-svn: 67879
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
index 8ab3487a958..a9c3d6a523b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h
+++ b/llvm/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
OpenPOWER on IntegriCloud