summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/ValueTest.cpp
diff options
context:
space:
mode:
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