aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/System/Path.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index ba251a9..00e4ea3 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -206,14 +206,14 @@ namespace sys {
/// @returns true if \p this and \p that refer to the same thing.
/// @brief Equality Operator
bool operator==(const Path &that) const {
- return path == that.path;
+ return strcmp(path.c_str(), that.path.c_str()) == 0;
}
/// Compares \p this Path with \p that Path for inequality.
/// @returns true if \p this and \p that refer to different things.
/// @brief Inequality Operator
bool operator!=(const Path &that) const {
- return path != that.path;
+ return strcmp(path.c_str(), that.path.c_str()) != 0;
}
/// Determines if \p this Path is less than \p that Path. This is required
@@ -223,7 +223,7 @@ namespace sys {
/// @returns true if \p this path is lexicographically less than \p that.
/// @brief Less Than Operator
bool operator<(const Path& that) const {
- return path < that.path;
+ return strcmp(path.c_str(), that.path.c_str()) < 0;
}
/// @}