1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Recommit r235219, it's need for out-of-tree users of AlignOf.h.

llvm-svn: 235522
This commit is contained in:
Yaron Keren 2015-04-22 16:43:56 +00:00
parent 75c2c01b61
commit 372925e7ab

View File

@ -22,6 +22,14 @@ 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.
// Although the warning is disabled in the LLVM project we need this pragma
// as AlignOf.h is a published support header that's available for use
// out-of-tree, and we would like that to ompile cleanly at /W4.
#pragma warning(suppress : 4324)
#endif
T t;
private:
AlignmentCalcImpl() {} // Never instantiate.