From c86235f4eb3ee71272aed492d3faa18360d54bbc Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 17 May 2014 21:29:57 +0000 Subject: 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 --- unittests/IR/ConstantsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unittests/IR/ConstantsTest.cpp') diff --git a/unittests/IR/ConstantsTest.cpp b/unittests/IR/ConstantsTest.cpp index abab122022..c11729c08f 100644 --- a/unittests/IR/ConstantsTest.cpp +++ b/unittests/IR/ConstantsTest.cpp @@ -274,7 +274,7 @@ TEST(ConstantsTest, ReplaceInAliasTest) { Type *Int32Ty = Type::getInt32Ty(getGlobalContext()); auto *Global = cast(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"); } -- cgit v1.2.3