[llvm] r307896 - Fixup r307893: Silence warning
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 13 02:52:06 PDT 2017
Author: rovka
Date: Thu Jul 13 02:52:06 2017
New Revision: 307896
URL: http://llvm.org/viewvc/llvm-project?rev=307896&view=rev
Log:
Fixup r307893: Silence warning
Silence unused variable warning in release builds.
*sigh*
Modified:
llvm/trunk/lib/Target/ARM/ARMRegisterBankInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMRegisterBankInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMRegisterBankInfo.cpp?rev=307896&r1=307895&r2=307896&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMRegisterBankInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMRegisterBankInfo.cpp Thu Jul 13 02:52:06 2017
@@ -259,6 +259,7 @@ ARMRegisterBankInfo::getInstrMapping(con
break;
case G_SELECT: {
LLT Ty = MRI.getType(MI.getOperand(0).getReg());
+ (void)Ty;
LLT Ty2 = MRI.getType(MI.getOperand(1).getReg());
(void)Ty2;
assert(Ty.getSizeInBits() == 32 && "Unsupported size for G_SELECT");
@@ -282,6 +283,7 @@ ARMRegisterBankInfo::getInstrMapping(con
}
case G_FCMP: {
LLT Ty = MRI.getType(MI.getOperand(0).getReg());
+ (void)Ty;
LLT Ty1 = MRI.getType(MI.getOperand(2).getReg());
LLT Ty2 = MRI.getType(MI.getOperand(3).getReg());
(void)Ty2;
More information about the llvm-commits
mailing list