projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae1aab
)
Suppressing the C4324 warnings generated by MSVC. This is the only declarative instan...
author
Aaron Ballman
<aaron@aaronballman.com>
Fri, 17 Apr 2015 19:35:44 +0000
(19:35 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Fri, 17 Apr 2015 19:35:44 +0000
(19:35 +0000)
llvm-svn: 235219
llvm/include/llvm/Support/AlignOf.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Support/AlignOf.h
b/llvm/include/llvm/Support/AlignOf.h
index
061d5ac
..
4e0a899
100644
(file)
--- a/
llvm/include/llvm/Support/AlignOf.h
+++ b/
llvm/include/llvm/Support/AlignOf.h
@@
-22,6
+22,11
@@
namespace llvm {
template <typename T>
struct AlignmentCalcImpl {
char x;
+#if defined(_MSC_VER)
+// Disables "structure was padded due to __declspec(align())" warnings that are
+// generated by any class using AlignOf<T> with a manually specified alignment.
+#pragma warning(suppress : 4324)
+#endif
T t;
private:
AlignmentCalcImpl() {} // Never instantiate.