[compiler-rt] r335997 - [cfi] Use __builtin version of __clear_cache.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 29 10:22:58 PDT 2018
Author: eugenis
Date: Fri Jun 29 10:22:58 2018
New Revision: 335997
URL: http://llvm.org/viewvc/llvm-project?rev=335997&view=rev
Log:
[cfi] Use __builtin version of __clear_cache.
__builtin___clear_cache is also present on X86 and does the right thing (i.e. nop) there.
Modified:
compiler-rt/trunk/test/cfi/cross-dso/icall/dlopen.cpp
Modified: compiler-rt/trunk/test/cfi/cross-dso/icall/dlopen.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/cross-dso/icall/dlopen.cpp?rev=335997&r1=335996&r2=335997&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/cross-dso/icall/dlopen.cpp (original)
+++ compiler-rt/trunk/test/cfi/cross-dso/icall/dlopen.cpp Fri Jun 29 10:22:58 2018
@@ -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[]) {
More information about the llvm-commits
mailing list