summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/ConstantsTest.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
commitf1bedd37471a9f9080e9e48d8b2641bac4cff523 (patch)
tree0ef8736b8333a3ab0a56701b884cbb04c7883fa0 /llvm/unittests/IR/ConstantsTest.cpp
parent77bbb54fbfbc4aa03af427ce856c419a64e72b86 (diff)
downloadbcm5719-llvm-f1bedd37471a9f9080e9e48d8b2641bac4cff523.tar.gz
bcm5719-llvm-f1bedd37471a9f9080e9e48d8b2641bac4cff523.zip
Use create methods since msvc doesn't handle delegating constructors.
llvm-svn: 209076
Diffstat (limited to 'llvm/unittests/IR/ConstantsTest.cpp')
-rw-r--r--llvm/unittests/IR/ConstantsTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/IR/ConstantsTest.cpp b/llvm/unittests/IR/ConstantsTest.cpp
index abab1220229..c11729c08f0 100644
--- a/llvm/unittests/IR/ConstantsTest.cpp
+++ b/llvm/unittests/IR/ConstantsTest.cpp
@@ -274,7 +274,7 @@ TEST(ConstantsTest, ReplaceInAliasTest) {
Type *Int32Ty = Type::getInt32Ty(getGlobalContext());
auto *Global = cast<GlobalObject>(M->getOrInsertGlobal("dummy", Int32Ty));
- auto *GA = new GlobalAlias(GlobalValue::ExternalLinkage, "alias", Global);
+ auto *GA = GlobalAlias::create(GlobalValue::ExternalLinkage, "alias", Global);
EXPECT_DEATH(Global->replaceAllUsesWith(GA),
"replaceAliasUseWith cannot form an alias cycle");
}
OpenPOWER on IntegriCloud