From: Mike Stump Date: Fri, 8 May 2009 22:53:06 +0000 (+0000) Subject: Avoid warning in release-asserts build. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1e8f072f1948de43a0c1c71e00e83e7bb192d7cb;p=oota-llvm.git Avoid warning in release-asserts build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71275 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index 4724c3a127a..e37639e068a 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -935,6 +935,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) { ++NumReMats; } else { bool Emitted = TII->copyRegToReg(*mbbi, mi, regA, regB, rc, rc); + (void)Emitted; assert(Emitted && "Unable to issue a copy instruction!\n"); }