Index: runtime/vm/assembler_arm64_test.cc |
diff --git a/runtime/vm/assembler_arm64_test.cc b/runtime/vm/assembler_arm64_test.cc |
index 518eea381b7ff510667b97e1bbaa609d9f133125..94329a9a51af6541c6269c6ae45ed9faab09f070 100644 |
--- a/runtime/vm/assembler_arm64_test.cc |
+++ b/runtime/vm/assembler_arm64_test.cc |
@@ -1700,7 +1700,8 @@ ASSEMBLER_TEST_RUN(LoadImmediatePPLarge, test) { |
bit_cast<intptr_t, uword>(test->entry()), \ |
reinterpret_cast<intptr_t>(thread), 0, 0, 0) |
#else |
-#define ASSEMBER_TEST_RUN_WITH_THREAD(var_name) \ |
+#define ASSEMBLER_TEST_RUN_WITH_THREAD(var_name) \ |
+ Thread* thread = Thread::Current(); \ |
typedef int64_t (*Int64Return)(Thread* thread); \ |
Int64Return test_code = reinterpret_cast<Int64Return>(test->entry()); \ |
int64_t var_name = test_code(thread) |