From: LLVM Packaging Team Date: Sat, 4 Jan 2025 08:12:52 +0000 (+0100) Subject: declare_clear_cache X-Git-Tag: archive/raspbian/1%17.0.6-20+rpi1^2~95 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f01bcbd63c04b56471b8f8e7e9d5898ba24d1147;p=llvm-toolchain-17.git declare_clear_cache Gbp-Pq: Name declare_clear_cache.diff --- diff --git a/llvm/lib/Support/Unix/Memory.inc b/llvm/lib/Support/Unix/Memory.inc index 4c8f6b2ea7..f4c6af8ac4 100644 --- a/llvm/lib/Support/Unix/Memory.inc +++ b/llvm/lib/Support/Unix/Memory.inc @@ -242,7 +242,7 @@ void Memory::InvalidateInstructionCache(const void *Addr, size_t Len) { // FIXME: Can we safely always call this for __GNUC__ everywhere? const char *Start = static_cast(Addr); const char *End = Start + Len; - __clear_cache(const_cast(Start), const_cast(End)); + __builtin___clear_cache(const_cast(Start), const_cast(End)); #endif #endif // end apple