[Lldb-commits] [lldb] [lldb] Store SupportFile in LineEntry (NFC) (PR #77999)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 12 15:27:00 PST 2024


================
@@ -20,7 +20,7 @@ LineEntry::LineEntry()
 void LineEntry::Clear() {
   range.Clear();
   file.Clear();
-  original_file.Clear();
+  original_file = std::make_shared<SupportFile>();
----------------
JDevlieghere wrote:

Correct, this ensures I can always assume that the shared pointer is valid. The underlying FileSpec might be "empty" which matches the existing semantics. 

https://github.com/llvm/llvm-project/pull/77999


More information about the lldb-commits mailing list