diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp index 373efb17134c..f5b1e9181298 100644 --- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp +++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp @@ -240,6 +240,7 @@ PPCMCCodeEmitter::getMemRI34PCRelEncoding(const MCInst &MI, unsigned OpNo, llvm_unreachable("Expecting to have one constant and one relocation."); const MCSymbolRefExpr *SRE = cast(LHS); + (void)SRE; const MCConstantExpr *CE = cast(RHS); // Currently these are the only valid PCRelative Relocations.