[llvm-commits] CVS: llvm/utils/TableGen/CodeGenTarget.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 18 23:48:44 PST 2005
Changes in directory llvm/utils/TableGen:
CodeGenTarget.cpp updated: 1.42 -> 1.43
---
Log message:
Initialize this variable on all paths, fixing a crasher in windows. Thanks
to JeffC for pointing this out.
---
Diffs of the changes: (+1 -1)
CodeGenTarget.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/utils/TableGen/CodeGenTarget.cpp
diff -u llvm/utils/TableGen/CodeGenTarget.cpp:1.42 llvm/utils/TableGen/CodeGenTarget.cpp:1.43
--- llvm/utils/TableGen/CodeGenTarget.cpp:1.42 Sat Nov 19 01:05:57 2005
+++ llvm/utils/TableGen/CodeGenTarget.cpp Sat Nov 19 01:48:33 2005
@@ -267,7 +267,7 @@
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")) {
More information about the llvm-commits
mailing list