diff options
Diffstat (limited to 'llvm/unittests/IR')
-rw-r--r-- | llvm/unittests/IR/VerifierTest.cpp | 5 |
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); |