summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/ValueTest.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-08-06 09:03:21 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-08-06 09:03:21 +0000
commit396521378f0a5c5373c0321e156de7cbcffb3cd3 (patch)
tree56af37d18b2c5c50dd09842a892f210f4b2eb0de /llvm/unittests/IR/ValueTest.cpp
parentac9ee01fcbfac745aaedca0393a8e1c8a33acd8d (diff)
downloadbcm5719-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/IR/ValueTest.cpp')
-rw-r--r--llvm/unittests/IR/ValueTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/IR/ValueTest.cpp b/llvm/unittests/IR/ValueTest.cpp
index 03523a74e1a..f26046304f5 100644
--- a/llvm/unittests/IR/ValueTest.cpp
+++ b/llvm/unittests/IR/ValueTest.cpp
@@ -99,7 +99,8 @@ TEST(GlobalTest, AlignDeath) {
Constant::getAllOnesValue(Int32Ty), "var", nullptr,
GlobalVariable::NotThreadLocal, 1);
- EXPECT_DEATH(Var->setAlignment(536870913U), "Alignment is not a power of 2");
+ EXPECT_DEATH(Var->setAlignment(536870913U),
+ "Alignment is neither 0 nor a power of 2");
EXPECT_DEATH(Var->setAlignment(1073741824U),
"Alignment is greater than MaximumAlignment");
}
OpenPOWER on IntegriCloud