From beb77bd89fbb3661903ca5dbc39fee7454227536 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 24 Apr 2016 04:38:29 +0000 Subject: [PATCH] Fix an assertion that can never fire because the condition ANDed with the string is just true or 1. llvm-svn: 267324 --- llvm/lib/Target/Mips/MipsInstrInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.cpp b/llvm/lib/Target/Mips/MipsInstrInfo.cpp index 0f4e820f..a1bfba0 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.cpp +++ b/llvm/lib/Target/Mips/MipsInstrInfo.cpp @@ -107,7 +107,7 @@ MipsInstrInfo::BuildCondBr(MachineBasicBlock &MBB, MachineBasicBlock *TBB, else if (Cond[i].isImm()) MIB.addImm(Cond[i].getImm()); else - assert(true && "Cannot copy operand"); + assert(false && "Cannot copy operand"); } MIB.addMBB(TBB); } -- 2.7.4