forked from OSchip/llvm-project
Initialize this variable on all paths, fixing a crasher in windows. Thanks
to JeffC for pointing this out. llvm-svn: 24426
This commit is contained in:
parent
377bdbff91
commit
f2807be3da
|
@ -267,7 +267,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
|
||||||
MVT::ValueType Ty;
|
MVT::ValueType Ty;
|
||||||
std::string PrintMethod = "printOperand";
|
std::string PrintMethod = "printOperand";
|
||||||
unsigned NumOps = 1;
|
unsigned NumOps = 1;
|
||||||
DagInit *MIOpInfo;
|
DagInit *MIOpInfo = 0;
|
||||||
if (Rec->isSubClassOf("RegisterClass")) {
|
if (Rec->isSubClassOf("RegisterClass")) {
|
||||||
Ty = getValueType(Rec->getValueAsDef("RegType"));
|
Ty = getValueType(Rec->getValueAsDef("RegType"));
|
||||||
} else if (Rec->isSubClassOf("Operand")) {
|
} else if (Rec->isSubClassOf("Operand")) {
|
||||||
|
|
Loading…
Reference in New Issue