aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeGenTarget.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-19 07:48:33 +0000
committerChris Lattner <sabre@nondot.org>2005-11-19 07:48:33 +0000
commit3367079b0bc5fcb12bc155577457469cded5c528 (patch)
treef5e066424ccec285cdc7c350be8d15e6e33944a3 /utils/TableGen/CodeGenTarget.cpp
parent3aa2c74e192124244d22aaef857980e16fab49ea (diff)
Initialize this variable on all paths, fixing a crasher in windows. Thanks
to JeffC for pointing this out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.cpp')
-rw-r--r--utils/TableGen/CodeGenTarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp
index f0786e5f39..d08cd7fdc9 100644
--- a/utils/TableGen/CodeGenTarget.cpp
+++ b/utils/TableGen/CodeGenTarget.cpp
@@ -267,7 +267,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
MVT::ValueType Ty;
std::string PrintMethod = "printOperand";
unsigned NumOps = 1;
- DagInit *MIOpInfo;
+ DagInit *MIOpInfo = 0;
if (Rec->isSubClassOf("RegisterClass")) {
Ty = getValueType(Rec->getValueAsDef("RegType"));
} else if (Rec->isSubClassOf("Operand")) {