summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/AlignmentTest.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-10-28 10:40:35 +0100
committerGuillaume Chatelet <gchatelet@google.com>2019-10-28 10:40:35 +0100
commitda68fd8f81602f388b4a603518fede7fcafd3bc1 (patch)
tree18fde249d6bcdbc6aa39c109295f7586ef779b60 /llvm/unittests/Support/AlignmentTest.cpp
parentd9971d0b2e34a6a5ca182089d019c9f079f528af (diff)
downloadbcm5719-llvm-da68fd8f81602f388b4a603518fede7fcafd3bc1.tar.gz
bcm5719-llvm-da68fd8f81602f388b4a603518fede7fcafd3bc1.zip
Fix https://bugs.llvm.org/show_bug.cgi?id=43791
Diffstat (limited to 'llvm/unittests/Support/AlignmentTest.cpp')
-rw-r--r--llvm/unittests/Support/AlignmentTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/AlignmentTest.cpp b/llvm/unittests/Support/AlignmentTest.cpp
index 35fac5e51a1..cbd0856f0b7 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() {
OpenPOWER on IntegriCloud