aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/IR/VerifierTest.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-16 13:34:04 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-16 13:34:04 +0000
commit4fe0094fd15c9b94e4940994cced3e23baafdb9b (patch)
tree3a8e76199bad6971294da68811ba0d0edb19678b /llvm/unittests/IR/VerifierTest.cpp
parent95442c445fa2b5f5b43100ca049dcc6e3b01c0f8 (diff)
downloadllvm-4fe0094fd15c9b94e4940994cced3e23baafdb9b.zip
llvm-4fe0094fd15c9b94e4940994cced3e23baafdb9b.tar.gz
llvm-4fe0094fd15c9b94e4940994cced3e23baafdb9b.tar.bz2
Change the GlobalAlias constructor to look a bit more like GlobalVariable.
This is part of the fix for pr10367. A GlobalAlias always has a pointer type, so just have the constructor build the type. llvm-svn: 208983
Diffstat (limited to 'llvm/unittests/IR/VerifierTest.cpp')
-rw-r--r--llvm/unittests/IR/VerifierTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/unittests/IR/VerifierTest.cpp b/llvm/unittests/IR/VerifierTest.cpp
index 0a660a6..92f25b3 100644
--- a/llvm/unittests/IR/VerifierTest.cpp
+++ b/llvm/unittests/IR/VerifierTest.cpp
@@ -52,9 +52,8 @@ TEST(VerifierTest, AliasUnnamedAddr) {
GlobalVariable *Aliasee = new GlobalVariable(M, Ty, true,
GlobalValue::ExternalLinkage,
Init, "foo");
- GlobalAlias *GA = new GlobalAlias(Type::getInt8PtrTy(C),
- GlobalValue::ExternalLinkage,
- "bar", Aliasee, &M);
+ auto *GA =
+ new GlobalAlias(Ty, GlobalValue::ExternalLinkage, "bar", Aliasee, &M);
GA->setUnnamedAddr(true);
std::string Error;
raw_string_ostream ErrorOS(Error);