diff --git a/src/codegen/target/arm/assembler.cpp b/src/codegen/target/arm/assembler.cpp index ab74b41d72..a72bd5edf5 100644 --- a/src/codegen/target/arm/assembler.cpp +++ b/src/codegen/target/arm/assembler.cpp @@ -237,6 +237,9 @@ class MyArchitecture : public Architecture { case ThreadRegister.index(): case ProgramCounter.index(): return true; + case 18: + // x18 is a reserved platform register on arm64 + return TargetBytesPerWord == 8; default: return false;