From d77e7ba74e77fe8fc61f84e79ba6678d614c40af Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Fri, 29 Jun 2018 17:22:58 +0000 Subject: [PATCH] [cfi] Use __builtin version of __clear_cache. __builtin___clear_cache is also present on X86 and does the right thing (i.e. nop) there. llvm-svn: 335997 --- compiler-rt/test/cfi/cross-dso/icall/dlopen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/cfi/cross-dso/icall/dlopen.cpp b/compiler-rt/test/cfi/cross-dso/icall/dlopen.cpp index 20fe122..c9674c3 100644 --- a/compiler-rt/test/cfi/cross-dso/icall/dlopen.cpp +++ b/compiler-rt/test/cfi/cross-dso/icall/dlopen.cpp @@ -88,7 +88,7 @@ static void restore_code() { MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, 0, 0); assert(code == real_start); memcpy(code, saved_code, kCodeSize); - __clear_cache(code, code + kCodeSize); + __builtin___clear_cache(code, code + kCodeSize); } int main(int argc, char *argv[]) { -- 2.7.4