From cb5fac1d125b29afef507a93bb65925781d2071b 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 llvm-svn: 362480 --- 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; }