[ADT] Use a nonce type with at least 4 byte alignment.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 29 Dec 2015 00:03:24 +0000 (00:03 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 29 Dec 2015 00:03:24 +0000 (00:03 +0000)
We didn't actually statically check this, and so it worked 25% of the
time for me. =/ Really sorry it took so long to fix, I shouldn't leave
the commit log editor window open without saving and landing the commit.
=[

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256528 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ADT/PointerIntPairTest.cpp

index 956c250791ec82cbfc4d679b01f893db152cc031..e27a5823a51ed9cc5023749de4adfd57ac6d6c8c 100644 (file)
@@ -16,6 +16,7 @@ namespace {
 
 TEST(PointerIntPairTest, GetSet) {
   struct S {
 
 TEST(PointerIntPairTest, GetSet) {
   struct S {
+    int i;
   };
   S s;
 
   };
   S s;