[llvm] dfbe74b - [Hexagon] Fix release build break after 547658567353d
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 7 12:21:55 PST 2022
Author: Krzysztof Parzyszek
Date: 2022-01-07T12:21:02-08:00
New Revision: dfbe74be63c217f186fa24d322bac00bcd91851f
URL: https://github.com/llvm/llvm-project/commit/dfbe74be63c217f186fa24d322bac00bcd91851f
DIFF: https://github.com/llvm/llvm-project/commit/dfbe74be63c217f186fa24d322bac00bcd91851f.diff
LOG: [Hexagon] Fix release build break after 547658567353d
Added:
Modified:
llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
index d7c0f71cdac4..f8ac35aed7c0 100644
--- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
+++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
@@ -712,7 +712,6 @@ unsigned
HexagonMCCodeEmitter::getMachineOpValue(MCInst const &MI, MCOperand const &MO,
SmallVectorImpl<MCFixup> &Fixups,
MCSubtargetInfo const &STI) const {
-#ifndef NDEBUG
size_t OperandNumber = ~0U;
for (unsigned i = 0, n = MI.getNumOperands(); i < n; ++i)
if (&MI.getOperand(i) == &MO) {
@@ -720,7 +719,6 @@ HexagonMCCodeEmitter::getMachineOpValue(MCInst const &MI, MCOperand const &MO,
break;
}
assert((OperandNumber != ~0U) && "Operand not found");
-#endif
if (HexagonMCInstrInfo::isNewValue(MCII, MI) &&
&MO == &HexagonMCInstrInfo::getNewValueOperand(MCII, MI)) {
More information about the llvm-commits
mailing list