summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/ConstantsTest.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-17 19:57:46 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-17 19:57:46 +0000
commit83705658205c8767ee024513297e5d921eca6db6 (patch)
tree463f2843c05cf96f972581ae5c05acce84554b76 /llvm/unittests/IR/ConstantsTest.cpp
parente8daa2f843e280607db9e5c8ca1b72db1f62c21e (diff)
downloadbcm5719-llvm-83705658205c8767ee024513297e5d921eca6db6.tar.gz
bcm5719-llvm-83705658205c8767ee024513297e5d921eca6db6.zip
Reduce abuse of default values in the GlobalAlias constructor.
This is in preparation for adding an optional offset. llvm-svn: 209073
Diffstat (limited to 'llvm/unittests/IR/ConstantsTest.cpp')
-rw-r--r--llvm/unittests/IR/ConstantsTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/IR/ConstantsTest.cpp b/llvm/unittests/IR/ConstantsTest.cpp
index b225ba923b6..abab1220229 100644
--- a/llvm/unittests/IR/ConstantsTest.cpp
+++ b/llvm/unittests/IR/ConstantsTest.cpp
@@ -274,8 +274,7 @@ TEST(ConstantsTest, ReplaceInAliasTest) {
Type *Int32Ty = Type::getInt32Ty(getGlobalContext());
auto *Global = cast<GlobalObject>(M->getOrInsertGlobal("dummy", Int32Ty));
- auto *GA = new GlobalAlias(Int32Ty, GlobalValue::ExternalLinkage, "alias",
- Global, M.get());
+ auto *GA = new GlobalAlias(GlobalValue::ExternalLinkage, "alias", Global);
EXPECT_DEATH(Global->replaceAllUsesWith(GA),
"replaceAliasUseWith cannot form an alias cycle");
}
OpenPOWER on IntegriCloud