projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30977fc
)
Silenced a warning "implicit conversion turns string literal into bool" introduced...
author
Dmitri Gribenko
<gribozavr@gmail.com>
Tue, 4 Jun 2019 09:31:07 +0000
(09:31 +0000)
committer
Dmitri Gribenko
<gribozavr@gmail.com>
Tue, 4 Jun 2019 09:31:07 +0000
(09:31 +0000)
llvm-svn: 362480
llvm/lib/IR/Instructions.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Instructions.cpp
b/llvm/lib/IR/Instructions.cpp
index ad082a9c24f30eddfbbf1a761cfe690d0442667a..693918c8c076f819701d7e3f97f4b7a73294974b 100644
(file)
--- 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;
}