declare_clear_cache
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 21 Jul 2020 16:29:06 +0000 (17:29 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 21 Jul 2020 16:29:06 +0000 (17:29 +0100)
Gbp-Pq: Name declare_clear_cache.diff

llvm/lib/Support/Unix/Memory.inc

index 79b1759359e1f736ac84045d7a7e2ce8a45bf062..385afd123cf41cce7db3be0040f985bd3a0d1f9e 100644 (file)
@@ -252,7 +252,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