From 54a7b8c591f2268af77d62ac64a6bc70e4a9033e Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 14 Jun 2015 04:15:08 -0500 Subject: [PATCH] Assert symbol_info is not null in X64Emitter::Call. --- src/xenia/cpu/backend/x64/x64_emitter.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/cpu/backend/x64/x64_emitter.cc b/src/xenia/cpu/backend/x64/x64_emitter.cc index 7fdda2718..247a1fb9c 100644 --- a/src/xenia/cpu/backend/x64/x64_emitter.cc +++ b/src/xenia/cpu/backend/x64/x64_emitter.cc @@ -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(symbol_info->function()); // Resolve address to the function to call and store in rax. if (fn) {