diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-17 19:57:46 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-17 19:57:46 +0000 |
commit | 83705658205c8767ee024513297e5d921eca6db6 (patch) | |
tree | 463f2843c05cf96f972581ae5c05acce84554b76 /llvm/unittests/IR/VerifierTest.cpp | |
parent | e8daa2f843e280607db9e5c8ca1b72db1f62c21e (diff) | |
download | bcm5719-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/VerifierTest.cpp')
-rw-r--r-- | llvm/unittests/IR/VerifierTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/IR/VerifierTest.cpp b/llvm/unittests/IR/VerifierTest.cpp index 92f25b3e37a..3499bc315ef 100644 --- a/llvm/unittests/IR/VerifierTest.cpp +++ b/llvm/unittests/IR/VerifierTest.cpp @@ -52,8 +52,7 @@ TEST(VerifierTest, AliasUnnamedAddr) { GlobalVariable *Aliasee = new GlobalVariable(M, Ty, true, GlobalValue::ExternalLinkage, Init, "foo"); - auto *GA = - new GlobalAlias(Ty, GlobalValue::ExternalLinkage, "bar", Aliasee, &M); + auto *GA = new GlobalAlias(GlobalValue::ExternalLinkage, "bar", Aliasee); GA->setUnnamedAddr(true); std::string Error; raw_string_ostream ErrorOS(Error); |