diff options
Diffstat (limited to 'llvm/unittests/Support/Casting.cpp')
-rw-r--r-- | llvm/unittests/Support/Casting.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/Support/Casting.cpp b/llvm/unittests/Support/Casting.cpp index bcdaca94a3c..a196fc2ec5e 100644 --- a/llvm/unittests/Support/Casting.cpp +++ b/llvm/unittests/Support/Casting.cpp @@ -193,12 +193,12 @@ TEST(CastingTest, dyn_cast_or_null) { EXPECT_NE(F5, null_foo); } -std::unique_ptr<derived> newd() { return llvm::make_unique<derived>(); } -std::unique_ptr<base> newb() { return llvm::make_unique<derived>(); } +std::unique_ptr<derived> newd() { return std::make_unique<derived>(); } +std::unique_ptr<base> newb() { return std::make_unique<derived>(); } TEST(CastingTest, unique_dyn_cast) { derived *OrigD = nullptr; - auto D = llvm::make_unique<derived>(); + auto D = std::make_unique<derived>(); OrigD = D.get(); // Converting from D to itself is valid, it should return a new unique_ptr |