Assert symbol_info is not null in X64Emitter::Call.

This commit is contained in:
gibbed 2015-06-14 04:15:08 -05:00
parent b9c341ebef
commit 54a7b8c591
1 changed files with 1 additions and 0 deletions

View File

@ -361,6 +361,7 @@ extern "C" uint64_t ResolveFunction(void* raw_context,
}
void X64Emitter::Call(const hir::Instr* instr, FunctionInfo* symbol_info) {
assert_not_null(symbol_info);
auto fn = reinterpret_cast<X64Function*>(symbol_info->function());
// Resolve address to the function to call and store in rax.
if (fn) {