Skip to content

Commit 42e36fb

Browse files
toppercgithub-actions[bot]
authored andcommitted
Automerge: [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.
2 parents 4f541a0 + ffc5385 commit 42e36fb

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)