diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/IR/Instructions.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp index 693918c8c07..2e7cad103c1 100644 --- a/llvm/lib/IR/Instructions.cpp +++ b/llvm/lib/IR/Instructions.cpp @@ -3913,9 +3913,8 @@ void SwitchInstProfUpdateWrapper::init() { if (ProfileData->getNumOperands() != SI.getNumSuccessors() + 1) { State = Invalid; if (SwitchInstProfUpdateWrapperStrict) - assert(false && - "number of prof branch_weights metadata operands corresponds to" - " number of succesors"); + llvm_unreachable("number of prof branch_weights metadata operands does " + "not correspond to number of succesors"); return; } |

