[llvm] 5cb4419 - [Target/PPC] Silence an unused variable warning. NFC.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 15 11:05:09 PDT 2020
Author: Davide Italiano
Date: 2020-06-15T11:05:01-07:00
New Revision: 5cb44196aa73579defb1ef7e1e9339909c097ef5
URL: https://github.com/llvm/llvm-project/commit/5cb44196aa73579defb1ef7e1e9339909c097ef5
DIFF: https://github.com/llvm/llvm-project/commit/5cb44196aa73579defb1ef7e1e9339909c097ef5.diff
LOG: [Target/PPC] Silence an unused variable warning. NFC.
Added:
Modified:
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
index 5b9a05486144..cd6bce24be5f 100644
--- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
+++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
@@ -243,6 +243,7 @@ PPCMCCodeEmitter::getMemRI34PCRelEncoding(const MCInst &MI, unsigned OpNo,
const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(LHS);
(void)SRE;
const MCConstantExpr *CE = cast<MCConstantExpr>(RHS);
+ (void)CE;
assert(isInt<34>(CE->getValue()) && "Value must fit in 34 bits.");
// Currently these are the only valid PCRelative Relocations.
More information about the llvm-commits
mailing list