From 01da091f106af191c63df82a7766411267873afb Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 29 Apr 2019 22:37:08 +0000 Subject: [PATCH] [WebAssembly] Make an assertion message prettier. NFC. This is a follow-up to https://reviews.llvm.org/D59521. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359509 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp b/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp index 215c63c1233..e2d0ad49cf6 100644 --- a/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp +++ b/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp @@ -842,8 +842,8 @@ void llvm::getLibcallSignature(const WebAssemblySubtarget &Subtarget, auto Val = Map.find(Name); #ifndef NDEBUG if (Val == Map.end()) { - errs() << "runtime library name: " << Name << "\n"; - llvm_unreachable("unexpected runtime library name"); + auto message = std::string("unexpected runtime library name: ") + Name; + llvm_unreachable(message.c_str()); } #endif return getLibcallSignature(Subtarget, Val->second, Rets, Params); -- 2.50.1