[HWASan] Fixed minor AArch64/GCC build error.
authorMitch Phillips <mitchphillips@outlook.com>
Mon, 11 Mar 2019 17:06:39 +0000 (17:06 +0000)
committerMitch Phillips <mitchphillips@outlook.com>
Mon, 11 Mar 2019 17:06:39 +0000 (17:06 +0000)
Fixed buildbot clang-cmake-aarch64-lld by ensuring clang-only features
are guarded by clang-only #defines.

llvm-svn: 355840

compiler-rt/lib/hwasan/hwasan_tag_mismatch_aarch64.S

index dbc9cc9..cda554f 100644 (file)
@@ -100,7 +100,11 @@ __hwasan_tag_mismatch:
 .Lfunc_end0:
   .size __hwasan_tag_mismatch, .Lfunc_end0-__hwasan_tag_mismatch
 
+// Address significance tables cannot be emitted on gcc. Some buildbots
+// (clang-cmake-aarch64-lld) use gcc to build compiler-rt.
+#if __clang__
 .addrsig
+#endif  // __clang__
 
 #endif  // defined(__aarch64__)