diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-10 16:56:30 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-10 16:56:30 -0800 |
commit | e81554b0f3bd55aa43fb0a811d6227f11cc7f7dc (patch) | |
tree | d9d043f8191e0ece58068c4d89f987c533fca986 /lib/Target/JSBackend/CallHandlers.h | |
parent | ff20f1d3fbab2b2ef6ec58fa0748fc9544b715e7 (diff) |
fix call handler call with NULL
Diffstat (limited to 'lib/Target/JSBackend/CallHandlers.h')
-rw-r--r-- | lib/Target/JSBackend/CallHandlers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/JSBackend/CallHandlers.h b/lib/Target/JSBackend/CallHandlers.h index 585ad339a5..451c3dcd50 100644 --- a/lib/Target/JSBackend/CallHandlers.h +++ b/lib/Target/JSBackend/CallHandlers.h @@ -39,6 +39,7 @@ const Value *getActuallyCalledValue(const Instruction *I) { std::string CH_##Ident(const Instruction *CI, std::string Name, int NumArgs=-1) { Code } DEF_CALL_HANDLER(__default__, { + if (!CI) return ""; // we are just called from a handler that was called from getFunctionIndex, only to ensure the handler was run at least once const Value *CV = getActuallyCalledValue(CI); bool NeedCasts; FunctionType *FT; |