aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/JSBackend/CallHandlers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/JSBackend/CallHandlers.h b/lib/Target/JSBackend/CallHandlers.h
index 8ae8c26c1d..266b0596a6 100644
--- a/lib/Target/JSBackend/CallHandlers.h
+++ b/lib/Target/JSBackend/CallHandlers.h
@@ -1045,6 +1045,7 @@ void setupCallHandlers() {
std::string handleCall(const Instruction *CI) {
const Value *CV = getActuallyCalledValue(CI);
if (isa<InlineAsm>(CV)) {
+ errs() << "In function " << CI->getParent()->getParent()->getName() << "()\n";
report_fatal_error("asm() not supported, use EM_ASM() (see emscripten.h)");
}