summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/IR/Instructions.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp
index ad082a9c24f..693918c8c07 100644
--- a/llvm/lib/IR/Instructions.cpp
+++ b/llvm/lib/IR/Instructions.cpp
@@ -3913,8 +3913,9 @@ void SwitchInstProfUpdateWrapper::init() {
if (ProfileData->getNumOperands() != SI.getNumSuccessors() + 1) {
State = Invalid;
if (SwitchInstProfUpdateWrapperStrict)
- assert(!"number of prof branch_weights metadata operands corresponds to"
- " number of succesors");
+ assert(false &&
+ "number of prof branch_weights metadata operands corresponds to"
+ " number of succesors");
return;
}
OpenPOWER on IntegriCloud