From 34688f2f7e63e731cf77a55aed38d409c8f09215 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Tue, 16 Jun 2015 13:15:54 +0000 Subject: Avoid using set::emplace as it is apparently not supported by gcc 4.7. llvm-svn: 239816 --- clang/unittests/Tooling/RewriterTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang') diff --git a/clang/unittests/Tooling/RewriterTest.cpp b/clang/unittests/Tooling/RewriterTest.cpp index 4928b17cfa2..93f69eb9fa0 100644 --- a/clang/unittests/Tooling/RewriterTest.cpp +++ b/clang/unittests/Tooling/RewriterTest.cpp @@ -39,8 +39,8 @@ TEST(Rewriter, ContinuesOverwritingFilesOnError) { TEST(Rewriter, AdjacentInsertAndDelete) { Replacements Replaces; - Replaces.emplace("", 6, 6, ""); - Replaces.emplace("", 6, 0, "replaced\n"); + Replaces.insert(Replacement("", 6, 6, "")); + Replaces.insert(Replacement("", 6, 0, "replaced\n")); EXPECT_EQ("line1\nreplaced\nline3\nline4", applyAllReplacements("line1\nline2\nline3\nline4", Replaces)); } -- cgit v1.2.3