[llvm] r182443 - Fix warning in non-assert build.
Rafael Espindola
rafael.espindola at gmail.com
Tue May 21 18:29:38 PDT 2013
Author: rafael
Date: Tue May 21 20:29:38 2013
New Revision: 182443
URL: http://llvm.org/viewvc/llvm-project?rev=182443&view=rev
Log:
Fix warning in non-assert build.
Modified:
llvm/trunk/lib/Target/R600/R600ExpandSpecialInstrs.cpp
Modified: llvm/trunk/lib/Target/R600/R600ExpandSpecialInstrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600ExpandSpecialInstrs.cpp?rev=182443&r1=182442&r2=182443&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600ExpandSpecialInstrs.cpp (original)
+++ llvm/trunk/lib/Target/R600/R600ExpandSpecialInstrs.cpp Tue May 21 20:29:38 2013
@@ -212,6 +212,8 @@ bool R600ExpandSpecialInstrsPass::runOnM
unsigned Src1 = BMI->getOperand(
TII->getOperandIdx(Opcode, R600Operands::SRC1))
.getReg();
+ (void) Src0;
+ (void) Src1;
assert(TRI.getHWRegChan(Src0) == TRI.getHWRegChan(Src1));
}
MI.eraseFromParent();
More information about the llvm-commits
mailing list