declare_clear_cache
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 18 Dec 2024 09:01:43 +0000 (10:01 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 18 Dec 2024 09:01:43 +0000 (10:01 +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