diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2018-06-29 17:22:58 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2018-06-29 17:22:58 +0000 |
commit | fc0b277ee27cea17ebe8625d2a6428b3d5f894b2 (patch) | |
tree | 424a34658ec5410341877d99fef29d322f7a1100 /test/cfi | |
parent | 06a3c0baea19e5ff295b34943fcec9609a686952 (diff) | |
download | compiler-rt-fc0b277ee27cea17ebe8625d2a6428b3d5f894b2.tar.gz |
[cfi] Use __builtin version of __clear_cache.
__builtin___clear_cache is also present on X86 and does the right thing (i.e. nop) there.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/cfi')
-rw-r--r-- | test/cfi/cross-dso/icall/dlopen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cfi/cross-dso/icall/dlopen.cpp b/test/cfi/cross-dso/icall/dlopen.cpp index 20fe1223a..c9674c3fb 100644 --- a/test/cfi/cross-dso/icall/dlopen.cpp +++ b/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[]) { |