Index: unittest/AssemblerX8664/TestUtil.h |
diff --git a/unittest/AssemblerX8664/TestUtil.h b/unittest/AssemblerX8664/TestUtil.h |
index 1c681312b15ea77635bf9020cfde0361b8e31db1..4600a9a0653814a4f3ca330f298c55bc018fb32b 100644 |
--- a/unittest/AssemblerX8664/TestUtil.h |
+++ b/unittest/AssemblerX8664/TestUtil.h |
@@ -913,8 +913,12 @@ protected: |
if (NeedsEpilogue) { |
addEpilogue(); |
} |
- |
NeedsEpilogue = false; |
+ |
+ for (auto *Fixup : assembler()->fixups()) { |
+ Fixup->emitOffset(assembler()); |
+ } |
+ |
return AssembledTest(codeBytes(), codeBytesSize(), NumAllocatedDwords); |
} |