Don't forget to initializer result field to 0!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7729 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-08-11 15:47:35 +00:00
parent bf2f8a9963
commit 3eda2eb23e
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ void TreePatternNode::dump() const { std::cerr << *this; }
//
Pattern::Pattern(PatternType pty, DagInit *RawPat, Record *TheRec,
InstrSelectorEmitter &ise)
: PTy(pty), TheRecord(TheRec), ISE(ise) {
: PTy(pty), Result(0), TheRecord(TheRec), ISE(ise) {
// First, parse the pattern...
Tree = ParseTreePattern(RawPat);

View File

@ -116,7 +116,7 @@ void TreePatternNode::dump() const { std::cerr << *this; }
//
Pattern::Pattern(PatternType pty, DagInit *RawPat, Record *TheRec,
InstrSelectorEmitter &ise)
: PTy(pty), TheRecord(TheRec), ISE(ise) {
: PTy(pty), Result(0), TheRecord(TheRec), ISE(ise) {
// First, parse the pattern...
Tree = ParseTreePattern(RawPat);