[llvm] r256528 - [ADT] Use a nonce type with at least 4 byte alignment.

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 28 16:03:24 PST 2015


Author: chandlerc
Date: Mon Dec 28 18:03:24 2015
New Revision: 256528

URL: http://llvm.org/viewvc/llvm-project?rev=256528&view=rev
Log:
[ADT] Use a nonce type with at least 4 byte alignment.

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.
=[

Modified:
    llvm/trunk/unittests/ADT/PointerIntPairTest.cpp

Modified: llvm/trunk/unittests/ADT/PointerIntPairTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/PointerIntPairTest.cpp?rev=256528&r1=256527&r2=256528&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/PointerIntPairTest.cpp (original)
+++ llvm/trunk/unittests/ADT/PointerIntPairTest.cpp Mon Dec 28 18:03:24 2015
@@ -16,6 +16,7 @@ namespace {
 
 TEST(PointerIntPairTest, GetSet) {
   struct S {
+    int i;
   };
   S s;
 




More information about the llvm-commits mailing list