declare_clear_cache
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 18 Oct 2017 14:37:25 +0000 (15:37 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 18 Oct 2017 14:37:25 +0000 (15:37 +0100)
Gbp-Pq: Name declare_clear_cache.diff

lib/Support/Unix/Memory.inc

index edbc7938f0cbf2b3f0dc88d76261c26634e75c52..d3253b01ed5bec3e45b97c5c1e23b6e7f1da7bd2 100644 (file)
@@ -322,7 +322,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