projects/compiler-rt/lib/builtins/clear_cache.c
I suggest two small changes here.
-
Mark it however required to avoid inlining, i.e. for the x86/amd64 case.
Control transfer is required. I realize it is likely anyway, you aren’t likely
to “fall from” the caller into the code. -
#elif defined(_WIN32) && (defined(arm) || defined(aarch64))
be changed to just:
#elif defined(_WIN32)
since Win32 hypothetically/historically runs on more than just x86/amd64/arm/arm64, and
FlushInstructionCache has been and presumably will remain omnipresent.
- Jay