Skip to content

Commit ffc5385

Browse files
committed
[TableGen] Fix typo in CompressInstEmitter.
We should use ImmVal field instead of Imm which is from the Kind enum. This caused us to check a value of 1 instead of of the what was parsed.
1 parent 1955a01 commit ffc5385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/CompressInstEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ void CompressInstEmitter::emitCompressInstEmitter(raw_ostream &OS,
827827
DestRec, "MCOperandPredicate");
828828
CondStream.indent(8)
829829
<< ValidatorName << "("
830-
<< "MCOperand::createImm(" << DestOperandMap[OpNo].Imm
830+
<< "MCOperand::createImm(" << DestOperandMap[OpNo].ImmVal
831831
<< "), STI, " << Entry << ") &&\n";
832832
} else {
833833
unsigned Entry =

0 commit comments

Comments
 (0)