summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBetul Buyukkurt <betulb@codeaurora.org>2015-11-18 19:39:20 +0000
committerBetul Buyukkurt <betulb@codeaurora.org>2015-11-18 19:39:20 +0000
commite7891d033e9e8b7b9bb4d75945d4cd218883cc44 (patch)
treecd9ad6839124b2f17fadf7468432ec1f32fabe6c
parenta52e2c83763bb08dda8d31cb45417fec66be76b6 (diff)
downloadbcm5719-llvm-e7891d033e9e8b7b9bb4d75945d4cd218883cc44.tar.gz
bcm5719-llvm-e7891d033e9e8b7b9bb4d75945d4cd218883cc44.zip
[PGO] Fix the build failures due to 253483 and 253489.
llvm-svn: 253492
-rw-r--r--compiler-rt/lib/profile/InstrProfiling.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.h b/compiler-rt/lib/profile/InstrProfiling.h
index 72a6e671eba..d709282fccb 100644
--- a/compiler-rt/lib/profile/InstrProfiling.h
+++ b/compiler-rt/lib/profile/InstrProfiling.h
@@ -12,10 +12,8 @@
#ifdef _MSC_VER
# define LLVM_ALIGNAS(x) __declspec(align(x))
-#elif __GNUC__ && !__has_feature(cxx_alignas)
-# define LLVM_ALIGNAS(x) __attribute__((aligned(x))
-#else
-# define LLVM_ALIGNAS(x) alignas(x)
+#elif __GNUC__
+# define LLVM_ALIGNAS(x) __attribute__((aligned(x)))
#endif
#if defined(__FreeBSD__) && defined(__i386__)
OpenPOWER on IntegriCloud