summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/Path.inc
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/System/Win32/Path.inc')
-rw-r--r--llvm/lib/System/Win32/Path.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc
index bb1252cfdd2..ff96e33dfad 100644
--- a/llvm/lib/System/Win32/Path.inc
+++ b/llvm/lib/System/Win32/Path.inc
@@ -56,6 +56,13 @@ Path::Path(const char *StrStart, unsigned StrLen)
FlipBackSlashes(path);
}
+Path&
+Path::operator=(const std::string &that) {
+ path = that;
+ FlipBackSlashes(path);
+ return *this;
+}
+
bool
Path::isValid() const {
if (path.empty())
OpenPOWER on IntegriCloud