summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-04-24 04:38:29 +0000
committerCraig Topper <craig.topper@gmail.com>2016-04-24 04:38:29 +0000
commitbeb77bd89fbb3661903ca5dbc39fee7454227536 (patch)
treece79002a48297284487a708c3e0b0f78b4236d3e /llvm/lib/Target
parentdbe4187d11b3833f500138d4120513297fdd33f4 (diff)
downloadbcm5719-llvm-beb77bd89fbb3661903ca5dbc39fee7454227536.tar.gz
bcm5719-llvm-beb77bd89fbb3661903ca5dbc39fee7454227536.zip
Fix an assertion that can never fire because the condition ANDed with the string is just true or 1.
llvm-svn: 267324
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/Mips/MipsInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.cpp b/llvm/lib/Target/Mips/MipsInstrInfo.cpp
index 0f4e820fb00..a1bfba0c354 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);
}
OpenPOWER on IntegriCloud