[llvm] r267324 - Fix an assertion that can never fire because the condition ANDed with the string is just true or 1.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 23 21:38:30 PDT 2016


Author: ctopper
Date: Sat Apr 23 23:38:29 2016
New Revision: 267324

URL: http://llvm.org/viewvc/llvm-project?rev=267324&view=rev
Log:
Fix an assertion that can never fire because the condition ANDed with the string is just true or 1.

Modified:
    llvm/trunk/lib/Target/Mips/MipsInstrInfo.cpp

Modified: llvm/trunk/lib/Target/Mips/MipsInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsInstrInfo.cpp?rev=267324&r1=267323&r2=267324&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsInstrInfo.cpp Sat Apr 23 23:38:29 2016
@@ -107,7 +107,7 @@ MipsInstrInfo::BuildCondBr(MachineBasicB
     else if (Cond[i].isImm())
       MIB.addImm(Cond[i].getImm());
     else
-       assert(true && "Cannot copy operand");
+       assert(false && "Cannot copy operand");
   }
   MIB.addMBB(TBB);
 }




More information about the llvm-commits mailing list