summaryrefslogtreecommitdiff
path: root/test/cfi
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2018-06-29 17:22:58 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2018-06-29 17:22:58 +0000
commitfc0b277ee27cea17ebe8625d2a6428b3d5f894b2 (patch)
tree424a34658ec5410341877d99fef29d322f7a1100 /test/cfi
parent06a3c0baea19e5ff295b34943fcec9609a686952 (diff)
[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.cpp2
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[]) {