summaryrefslogtreecommitdiff
path: root/unittests/Target/PathMappingListTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Target/PathMappingListTest.cpp')
-rw-r--r--unittests/Target/PathMappingListTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/unittests/Target/PathMappingListTest.cpp b/unittests/Target/PathMappingListTest.cpp
index cb807d0ca20d..42db27fdb504 100644
--- a/unittests/Target/PathMappingListTest.cpp
+++ b/unittests/Target/PathMappingListTest.cpp
@@ -19,8 +19,7 @@ namespace {
struct Matches {
FileSpec original;
FileSpec remapped;
- Matches(const char *o, const char *r)
- : original(o, false), remapped(r, false) {}
+ Matches(const char *o, const char *r) : original(o), remapped(r) {}
};
} // namespace
@@ -38,7 +37,7 @@ static void TestPathMappings(const PathMappingList &map,
std::string orig_normalized = match.original.GetPath();
EXPECT_TRUE(
map.RemapPath(ConstString(match.original.GetPath()), actual_remapped));
- EXPECT_EQ(FileSpec(actual_remapped.GetStringRef(), false), match.remapped);
+ EXPECT_EQ(FileSpec(actual_remapped.GetStringRef()), match.remapped);
FileSpec unmapped_spec;
EXPECT_TRUE(map.ReverseRemapPath(match.remapped, unmapped_spec));
std::string unmapped_path = unmapped_spec.GetPath();