[llvm] r362480 - Silenced a warning "implicit conversion turns string literal into bool" introduced in r362473
Dmitri Gribenko via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 02:31:08 PDT 2019
Author: gribozavr
Date: Tue Jun 4 02:31:07 2019
New Revision: 362480
URL: http://llvm.org/viewvc/llvm-project?rev=362480&view=rev
Log:
Silenced a warning "implicit conversion turns string literal into bool" introduced in r362473
Modified:
llvm/trunk/lib/IR/Instructions.cpp
Modified: llvm/trunk/lib/IR/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Instructions.cpp?rev=362480&r1=362479&r2=362480&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Instructions.cpp (original)
+++ llvm/trunk/lib/IR/Instructions.cpp Tue Jun 4 02:31:07 2019
@@ -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;
}
More information about the llvm-commits
mailing list