[llvm] da68fd8 - Fix https://bugs.llvm.org/show_bug.cgi?id=43791

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 02:41:13 PDT 2019


Author: Guillaume Chatelet
Date: 2019-10-28T10:40:35+01:00
New Revision: da68fd8f81602f388b4a603518fede7fcafd3bc1

URL: https://github.com/llvm/llvm-project/commit/da68fd8f81602f388b4a603518fede7fcafd3bc1
DIFF: https://github.com/llvm/llvm-project/commit/da68fd8f81602f388b4a603518fede7fcafd3bc1.diff

LOG: Fix https://bugs.llvm.org/show_bug.cgi?id=43791

Added: 
    

Modified: 
    llvm/unittests/Support/AlignmentTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Support/AlignmentTest.cpp b/llvm/unittests/Support/AlignmentTest.cpp
index 35fac5e51a12..cbd0856f0b76 100644
--- a/llvm/unittests/Support/AlignmentTest.cpp
+++ b/llvm/unittests/Support/AlignmentTest.cpp
@@ -40,7 +40,7 @@ TEST(AlignmentTest, AlignConstant) {
 
 TEST(AlignmentTest, AlignConstexprConstant) {
   constexpr Align kConstantAlign = Align::Of<uint64_t>();
-  EXPECT_EQ(Align(8), kConstantAlign);
+  EXPECT_EQ(Align(alignof(uint64_t)), kConstantAlign);
 }
 
 std::vector<uint64_t> getValidAlignments() {


        


More information about the llvm-commits mailing list