[llvm] r359509 - [WebAssembly] Make an assertion message prettier. NFC.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 15:37:08 PDT 2019
Author: djg
Date: Mon Apr 29 15:37:08 2019
New Revision: 359509
URL: http://llvm.org/viewvc/llvm-project?rev=359509&view=rev
Log:
[WebAssembly] Make an assertion message prettier. NFC.
This is a follow-up to https://reviews.llvm.org/D59521.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp?rev=359509&r1=359508&r2=359509&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp Mon Apr 29 15:37:08 2019
@@ -842,8 +842,8 @@ void llvm::getLibcallSignature(const Web
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);
More information about the llvm-commits
mailing list