From 72d9b451e7048bc0a833a2882d8353aef392ab88 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Tue, 4 Jun 2019 09:31:07 +0000 Subject: [PATCH] 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 --- lib/IR/Instructions.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.50.1