OSDN Git Service

Don't forget to initializer result field to 0!
authorChris Lattner <sabre@nondot.org>
Mon, 11 Aug 2003 15:47:35 +0000 (15:47 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Aug 2003 15:47:35 +0000 (15:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7729 91177308-0d34-0410-b5e6-96231b3b80d8

support/tools/TableGen/InstrSelectorEmitter.cpp
utils/TableGen/InstrSelectorEmitter.cpp

index c4909dc..229c24b 100644 (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);
index c4909dc..229c24b 100644 (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);