From 517fe0f18e945670eac79d506bbaa5ac12570ad9 Mon Sep 17 00:00:00 2001
From: MerryMage <MerryMage@users.noreply.github.com>
Date: Fri, 24 Feb 2017 18:29:17 +0000
Subject: [PATCH] emit_x64: WriteMemory* microinstructions do not define a
 value

---
 src/backend_x64/emit_x64.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend_x64/emit_x64.cpp b/src/backend_x64/emit_x64.cpp
index 3f5204f8..64197be7 100644
--- a/src/backend_x64/emit_x64.cpp
+++ b/src/backend_x64/emit_x64.cpp
@@ -2820,7 +2820,7 @@ static void ReadMemory(BlockOfCode* code, RegAlloc& reg_alloc, IR::Inst* inst, U
 template<typename FunctionPointer>
 static void WriteMemory(BlockOfCode* code, RegAlloc& reg_alloc, IR::Inst* inst, UserCallbacks& cb, size_t bit_size, FunctionPointer fn) {
     if (!cb.page_table) {
-        reg_alloc.HostCall(inst, inst->GetArg(0), inst->GetArg(1));
+        reg_alloc.HostCall(nullptr, inst->GetArg(0), inst->GetArg(1));
         code->CallFunction(fn);
         return;
     }