Initialize LiveOutInfo's APInt members to zero, as APInt's

default constructor produces an uninitialized APInt.
This fixes PR3896.

llvm-svn: 67879
This commit is contained in:
Dan Gohman 2009-03-27 23:51:02 +00:00
parent 8aa6bf5b8e
commit 6d75876473
1 changed files with 1 additions and 1 deletions

View File

@ -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