summaryrefslogtreecommitdiff
path: root/clang/lib/Tooling/FileMatchTrie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Tooling/FileMatchTrie.cpp')
-rw-r--r--clang/lib/Tooling/FileMatchTrie.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Tooling/FileMatchTrie.cpp b/clang/lib/Tooling/FileMatchTrie.cpp
index 7df5a16fd88f4..88dea6bb6c9f9 100644
--- a/clang/lib/Tooling/FileMatchTrie.cpp
+++ b/clang/lib/Tooling/FileMatchTrie.cpp
@@ -63,7 +63,7 @@ public:
return;
if (Path.empty()) {
// This is an empty leaf. Store NewPath and return.
- Path = NewPath;
+ Path = std::string(NewPath);
return;
}
if (Children.empty()) {