summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2019-04-29 22:37:08 +0000
committerDan Gohman <dan433584@gmail.com>2019-04-29 22:37:08 +0000
commit8d6e80f9598069c148af0b84c9b53185a38b9de2 (patch)
tree21f8a1f91d85741348e3c954b6370053a23a63f4 /llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
parent6c9f6fd11b6503f2b884554cbb5dbbe86163634b (diff)
downloadbcm5719-llvm-8d6e80f9598069c148af0b84c9b53185a38b9de2.tar.gz
bcm5719-llvm-8d6e80f9598069c148af0b84c9b53185a38b9de2.zip
[WebAssembly] Make an assertion message prettier. NFC.
This is a follow-up to https://reviews.llvm.org/D59521. llvm-svn: 359509
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
index 215c63c1233..e2d0ad49cf6 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud