declare_clear_cache

Gbp-Pq: Name declare_clear_cache.diff
This commit is contained in:
LLVM Packaging Team 2022-06-27 14:58:42 +08:00 committed by Lu zhiping
parent fc08267d92
commit 57f973133d
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,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