summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/IR')
-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 0a660a6b913..92f25b3e37a 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);
OpenPOWER on IntegriCloud