aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/System/Path.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index 69c1b48307..6c9ab94579 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -617,9 +617,12 @@ namespace sys {
bool CopyFile(const Path& Dest, const Path& Src, std::string* ErrMsg);
}
-
std::ostream& operator<<(std::ostream& strm, const sys::Path& aPath);
-std::ostream& operator<<(std::ostream& strm, const sys::PathWithStatus& aPath);
+inline std::ostream& operator<<(std::ostream& strm,
+ const sys::PathWithStatus& aPath) {
+ strm << static_cast<const sys::Path&>(aPath);
+ return strm;
+}
}