diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2019-06-04 09:31:07 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2019-06-04 09:31:07 +0000 |
| commit | 63846039f574a584714ef10777a6ea4c4e5706fd (patch) | |
| tree | f3a404ae90b0a39f56d257629bca44e90f0e6f18 | |
| parent | 30977fc3a97b6172431749402ed4ed0b565d902c (diff) | |
| download | bcm5719-llvm-63846039f574a584714ef10777a6ea4c4e5706fd.tar.gz bcm5719-llvm-63846039f574a584714ef10777a6ea4c4e5706fd.zip | |
Silenced a warning "implicit conversion turns string literal into bool" introduced in r362473
llvm-svn: 362480
| -rw-r--r-- | llvm/lib/IR/Instructions.cpp | 5 |
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; } |

