declare_clear_cache
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 14 Jan 2025 13:16:47 +0000 (14:16 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 14 Jan 2025 13:16:47 +0000 (14:16 +0100)
Gbp-Pq: Name declare_clear_cache.diff

llvm/lib/Support/Unix/Memory.inc

index bac208a7d543ca39d5e8368853cfa741bea826b2..b7220c4ea839afeb759f41b846496ee5a970ce39 100644 (file)
@@ -243,7 +243,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<const char *>(Addr);
   const char *End = Start + Len;
-  __clear_cache(const_cast<char *>(Start), const_cast<char *>(End));
+  __builtin___clear_cache(const_cast<char *>(Start), const_cast<char *>(End));
 #endif
 
 #endif // end apple