[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
This commit is contained in:
Evgeniy Stepanov 2018-06-29 17:22:58 +00:00
parent 3b0535b424
commit d77e7ba74e
1 changed files with 1 additions and 1 deletions

View File

@ -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[]) {