diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2019-08-06 09:03:21 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2019-08-06 09:03:21 +0000 |
commit | 396521378f0a5c5373c0321e156de7cbcffb3cd3 (patch) | |
tree | 56af37d18b2c5c50dd09842a892f210f4b2eb0de /llvm/unittests/Support/AlignmentTest.cpp | |
parent | ac9ee01fcbfac745aaedca0393a8e1c8a33acd8d (diff) | |
download | bcm5719-llvm-396521378f0a5c5373c0321e156de7cbcffb3cd3.tar.gz bcm5719-llvm-396521378f0a5c5373c0321e156de7cbcffb3cd3.zip |
[LLVM][Alignment] Introduce Alignment In GlobalObject
Summary:
This is patch is part of a serie to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: jfb
Subscribers: hiraditya, dexonsmith, llvm-commits, courbet
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65748
Address comments
llvm-svn: 368000
Diffstat (limited to 'llvm/unittests/Support/AlignmentTest.cpp')
-rw-r--r-- | llvm/unittests/Support/AlignmentTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Support/AlignmentTest.cpp b/llvm/unittests/Support/AlignmentTest.cpp index 0e251eb4921..83d6a727721 100644 --- a/llvm/unittests/Support/AlignmentTest.cpp +++ b/llvm/unittests/Support/AlignmentTest.cpp @@ -256,7 +256,8 @@ TEST(AlignmentDeathTest, InvalidCTors) { EXPECT_DEATH((Align(0)), "Value must not be 0"); for (uint64_t Value : getNonPowerOfTwo()) { EXPECT_DEATH((Align(Value)), "Alignment is not a power of 2"); - EXPECT_DEATH((MaybeAlign(Value)), "Alignment is not 0 or a power of 2"); + EXPECT_DEATH((MaybeAlign(Value)), + "Alignment is neither 0 nor a power of 2"); } } |