diff options
author | Daniel Jasper <djasper@google.com> | 2015-06-16 13:15:54 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-06-16 13:15:54 +0000 |
commit | 34688f2f7e63e731cf77a55aed38d409c8f09215 (patch) | |
tree | 68bc9ba63b8be766f64632711d9a482aaef8e7eb /clang | |
parent | 335487ad873797c2a44747d1c9442baa67fa8d74 (diff) | |
download | bcm5719-llvm-34688f2f7e63e731cf77a55aed38d409c8f09215.tar.gz bcm5719-llvm-34688f2f7e63e731cf77a55aed38d409c8f09215.zip |
Avoid using set::emplace as it is apparently not supported by gcc 4.7.
llvm-svn: 239816
Diffstat (limited to 'clang')
-rw-r--r-- | clang/unittests/Tooling/RewriterTest.cpp | 4 |
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)); } |