Author: Pavel Labath
Date: 2022-11-24T11:11:05+01:00
New Revision: 42237d51abf00417f5a3164d843e245ad584f7c4

URL: 
https://github.com/llvm/llvm-project/commit/42237d51abf00417f5a3164d843e245ad584f7c4
DIFF: 
https://github.com/llvm/llvm-project/commit/42237d51abf00417f5a3164d843e245ad584f7c4.diff

LOG: [lldb] Fix PathMappingListTest for the Optional interface change

Added: 
    

Modified: 
    lldb/unittests/Target/PathMappingListTest.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/unittests/Target/PathMappingListTest.cpp 
b/lldb/unittests/Target/PathMappingListTest.cpp
index cf2bc181b0796..29d83782e08fb 100644
--- a/lldb/unittests/Target/PathMappingListTest.cpp
+++ b/lldb/unittests/Target/PathMappingListTest.cpp
@@ -40,7 +40,8 @@ static void TestPathMappings(const PathMappingList &map,
         map.RemapPath(ConstString(match.original.GetPath()), actual_remapped));
     EXPECT_EQ(FileSpec(actual_remapped.GetStringRef()), match.remapped);
     FileSpec unmapped_spec;
-    EXPECT_TRUE(map.ReverseRemapPath(match.remapped, 
unmapped_spec).hasValue());
+    EXPECT_TRUE(
+        map.ReverseRemapPath(match.remapped, unmapped_spec).has_value());
     std::string unmapped_path = unmapped_spec.GetPath();
     EXPECT_EQ(unmapped_path, orig_normalized);
   }


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to