From: Dmitri Gribenko Date: Tue, 4 Jun 2019 09:31:07 +0000 (+0000) Subject: Silenced a warning "implicit conversion turns string literal into bool" introduced... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72d9b451e7048bc0a833a2882d8353aef392ab88;p=llvm Silenced a warning "implicit conversion turns string literal into bool" introduced in r362473 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362480 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/Instructions.cpp b/lib/IR/Instructions.cpp index ad082a9c24f..693918c8c07 100644 --- a/lib/IR/Instructions.cpp +++ b/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; }