diff options
Diffstat (limited to 'llvm/lib/System')
| -rw-r--r-- | llvm/lib/System/Unix/Path.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/System/Win32/Path.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Unix/Path.cpp b/llvm/lib/System/Unix/Path.cpp index 63184f6c1c5..e655ef40cdf 100644 --- a/llvm/lib/System/Unix/Path.cpp +++ b/llvm/lib/System/Unix/Path.cpp @@ -27,7 +27,7 @@ namespace llvm { using namespace sys; -Path::Path(std::string unverified_path) +Path::Path(const std::string& unverified_path) : path(unverified_path) { if (unverified_path.empty()) diff --git a/llvm/lib/System/Win32/Path.cpp b/llvm/lib/System/Win32/Path.cpp index 095417f0fec..070ebb31208 100644 --- a/llvm/lib/System/Win32/Path.cpp +++ b/llvm/lib/System/Win32/Path.cpp @@ -97,7 +97,7 @@ Path::GetTemporaryDirectory() { return *TempDirectory; } -Path::Path(std::string unverified_path) +Path::Path(const std::string& unverified_path) : path(unverified_path) { FlipBackSlashes(path); |

