summaryrefslogtreecommitdiff
path: root/unittests/IR/VerifierTest.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-17 21:29:57 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-17 21:29:57 +0000
commitc86235f4eb3ee71272aed492d3faa18360d54bbc (patch)
tree457375892b6c914a95ac0dc0d8bd5442b484e869 /unittests/IR/VerifierTest.cpp
parente7a6c2f1dfca147cdedb9683f7193882b548753d (diff)
downloadllvm-c86235f4eb3ee71272aed492d3faa18360d54bbc.tar.gz
llvm-c86235f4eb3ee71272aed492d3faa18360d54bbc.tar.bz2
llvm-c86235f4eb3ee71272aed492d3faa18360d54bbc.tar.xz
Use create methods since msvc doesn't handle delegating constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/IR/VerifierTest.cpp')
-rw-r--r--unittests/IR/VerifierTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/IR/VerifierTest.cpp b/unittests/IR/VerifierTest.cpp
index 3499bc315e..252bdd333c 100644
--- a/unittests/IR/VerifierTest.cpp
+++ b/unittests/IR/VerifierTest.cpp
@@ -52,7 +52,7 @@ TEST(VerifierTest, AliasUnnamedAddr) {
GlobalVariable *Aliasee = new GlobalVariable(M, Ty, true,
GlobalValue::ExternalLinkage,
Init, "foo");
- auto *GA = new GlobalAlias(GlobalValue::ExternalLinkage, "bar", Aliasee);
+ auto *GA = GlobalAlias::create(GlobalValue::ExternalLinkage, "bar", Aliasee);
GA->setUnnamedAddr(true);
std::string Error;
raw_string_ostream ErrorOS(Error);