declare_clear_cache
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 13 Feb 2022 13:04:40 +0000 (13:04 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 13 Feb 2022 13:04:40 +0000 (13:04 +0000)
Gbp-Pq: Name declare_clear_cache.diff

llvm/lib/Support/Unix/Memory.inc

index be88e7db14002961e1b08340ce3bf3a84e56c371..3cfc9f5ee6728868c849bb8859efa70fb12e618c 100644 (file)
@@ -253,7 +253,7 @@ void Memory::InvalidateInstructionCache(const void *Addr,
   // 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