diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-15 15:11:59 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-15 15:12:29 -0800 |
commit | d095c766b071a8d1680bb2f600ed461588f170c1 (patch) | |
tree | bf3442a4c5af3c94972498d1f380931107554076 | |
parent | 7220bb8af7be49163dc27272f319aa8f9f1fb126 (diff) |
abort on asm(), and direct people to EM_ASM()
-rw-r--r-- | lib/Target/CppBackend/CallHandlers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/CppBackend/CallHandlers.h b/lib/Target/CppBackend/CallHandlers.h index 59cecb8e67..e56e580b36 100644 --- a/lib/Target/CppBackend/CallHandlers.h +++ b/lib/Target/CppBackend/CallHandlers.h @@ -689,6 +689,7 @@ void setupCallHandlers() { std::string handleCall(const CallInst *CI) { const Value *CV = CI->getCalledValue(); + assert(!isa<InlineAsm>(CV) && "asm() not supported, use EM_ASM() (see emscripten.h)"); std::string Name = getCppName(CV); unsigned NumArgs = CI->getNumArgOperands(); CallHandlerMap::iterator CH = CallHandlers->find("___default__"); |