diff --git a/src/compile.cpp b/src/compile.cpp index b974567f4b..0a62a57483 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -9095,6 +9095,9 @@ class MyProcessor: public Processor { if (codeAllocator.memory.begin() == 0) { codeAllocator.memory.items = static_cast( s->tryAllocateExecutable(ExecutableAreaSizeInBytes)); + + expect(t, codeAllocator.memory.items); + codeAllocator.memory.count = ExecutableAreaSizeInBytes; } #endif