]> granicus.if.org Git - clang/commitdiff
[ARM64] Fix __clear_cache - ensure it is predefined.
authorJames Molloy <james.molloy@arm.com>
Thu, 17 Apr 2014 12:51:42 +0000 (12:51 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 17 Apr 2014 12:51:42 +0000 (12:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206465 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/BuiltinsARM64.def
test/Sema/builtin-clear_cache.c

index dcc1b5180e6de36def4aab02844bb869aaffeb35..7500411e9eb8af82818e3ac96c4c17f063747549 100644 (file)
@@ -15,7 +15,7 @@
 // The format of this database matches clang/Basic/Builtins.def.
 
 // In libgcc
-BUILTIN(__clear_cache, "vv*v*", "")
+BUILTIN(__clear_cache, "vv*v*", "i")
 
 BUILTIN(__builtin_arm_ldrex, "v.", "t")
 BUILTIN(__builtin_arm_strex, "i.", "t")
index e21aad79d12aa2b4d0f48c7a736b42ef54045133..3193f3124dde7be71661b6e0d8c9f417c2c9ad4c 100644 (file)
@@ -1,5 +1,6 @@
 // RUN: %clang_cc1 -triple armv7-none-linux-gnu -fsyntax-only -verify %s
 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -fsyntax-only -verify %s
+// RUN: %clang_cc1 -triple arm64-none-linux-gnu -fsyntax-only -verify %s
 // expected-no-diagnostics
 
 void __clear_cache(void *a, void *b) {}