[llvm] ffc5385 - [TableGen] Fix typo in CompressInstEmitter.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 24 23:47:23 PDT 2025
Author: Craig Topper
Date: 2025-07-24T23:47:06-07:00
New Revision: ffc5385f8eaf4721a89e28bf8d7cf9c46b65d23e
URL: https://github.com/llvm/llvm-project/commit/ffc5385f8eaf4721a89e28bf8d7cf9c46b65d23e
DIFF: https://github.com/llvm/llvm-project/commit/ffc5385f8eaf4721a89e28bf8d7cf9c46b65d23e.diff
LOG: [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.
Added:
Modified:
llvm/utils/TableGen/CompressInstEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/CompressInstEmitter.cpp b/llvm/utils/TableGen/CompressInstEmitter.cpp
index e80adce647423..331cea1e6230e 100644
--- a/llvm/utils/TableGen/CompressInstEmitter.cpp
+++ b/llvm/utils/TableGen/CompressInstEmitter.cpp
@@ -827,7 +827,7 @@ void CompressInstEmitter::emitCompressInstEmitter(raw_ostream &OS,
DestRec, "MCOperandPredicate");
CondStream.indent(8)
<< ValidatorName << "("
- << "MCOperand::createImm(" << DestOperandMap[OpNo].Imm
+ << "MCOperand::createImm(" << DestOperandMap[OpNo].ImmVal
<< "), STI, " << Entry << ") &&\n";
} else {
unsigned Entry =
More information about the llvm-commits
mailing list