summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/unittests/Tooling/RewriterTest.cpp4
1 files changed, 2 insertions, 2 deletions
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("<file>", 6, 6, "");
- Replaces.emplace("<file>", 6, 0, "replaced\n");
+ Replaces.insert(Replacement("<file>", 6, 6, ""));
+ Replaces.insert(Replacement("<file>", 6, 0, "replaced\n"));
EXPECT_EQ("line1\nreplaced\nline3\nline4",
applyAllReplacements("line1\nline2\nline3\nline4", Replaces));
}
OpenPOWER on IntegriCloud