jasonmolenda updated this revision to Diff 283489. jasonmolenda added a comment.
Update to std::unique_ptr -- thanks for the reminder! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D85396/new/ https://reviews.llvm.org/D85396 Files: lldb/source/DataFormatters/VectorType.cpp lldb/source/Plugins/Language/CPlusPlus/BlockPointer.cpp Index: lldb/source/Plugins/Language/CPlusPlus/BlockPointer.cpp =================================================================== --- lldb/source/Plugins/Language/CPlusPlus/BlockPointer.cpp +++ lldb/source/Plugins/Language/CPlusPlus/BlockPointer.cpp @@ -175,9 +175,10 @@ bool lldb_private::formatters::BlockPointerSummaryProvider( ValueObject &valobj, Stream &s, const TypeSummaryOptions &) { - lldb_private::SyntheticChildrenFrontEnd *synthetic_children = - BlockPointerSyntheticFrontEndCreator(nullptr, valobj.GetSP()); - if (!synthetic_children) { + std::unique_ptr<SyntheticChildrenFrontEnd> synthetic_children; + synthetic_children.reset( + BlockPointerSyntheticFrontEndCreator(nullptr, valobj.GetSP())); + if (!synthetic_children.get()) { return false; } Index: lldb/source/DataFormatters/VectorType.cpp =================================================================== --- lldb/source/DataFormatters/VectorType.cpp +++ lldb/source/DataFormatters/VectorType.cpp @@ -261,9 +261,10 @@ bool lldb_private::formatters::VectorTypeSummaryProvider( ValueObject &valobj, Stream &s, const TypeSummaryOptions &) { - auto synthetic_children = - VectorTypeSyntheticFrontEndCreator(nullptr, valobj.GetSP()); - if (!synthetic_children) + std::unique_ptr<SyntheticChildrenFrontEnd> synthetic_children; + synthetic_children.reset( + VectorTypeSyntheticFrontEndCreator(nullptr, valobj.GetSP())); + if (!synthetic_children.get()) return false; synthetic_children->Update();
Index: lldb/source/Plugins/Language/CPlusPlus/BlockPointer.cpp =================================================================== --- lldb/source/Plugins/Language/CPlusPlus/BlockPointer.cpp +++ lldb/source/Plugins/Language/CPlusPlus/BlockPointer.cpp @@ -175,9 +175,10 @@ bool lldb_private::formatters::BlockPointerSummaryProvider( ValueObject &valobj, Stream &s, const TypeSummaryOptions &) { - lldb_private::SyntheticChildrenFrontEnd *synthetic_children = - BlockPointerSyntheticFrontEndCreator(nullptr, valobj.GetSP()); - if (!synthetic_children) { + std::unique_ptr<SyntheticChildrenFrontEnd> synthetic_children; + synthetic_children.reset( + BlockPointerSyntheticFrontEndCreator(nullptr, valobj.GetSP())); + if (!synthetic_children.get()) { return false; } Index: lldb/source/DataFormatters/VectorType.cpp =================================================================== --- lldb/source/DataFormatters/VectorType.cpp +++ lldb/source/DataFormatters/VectorType.cpp @@ -261,9 +261,10 @@ bool lldb_private::formatters::VectorTypeSummaryProvider( ValueObject &valobj, Stream &s, const TypeSummaryOptions &) { - auto synthetic_children = - VectorTypeSyntheticFrontEndCreator(nullptr, valobj.GetSP()); - if (!synthetic_children) + std::unique_ptr<SyntheticChildrenFrontEnd> synthetic_children; + synthetic_children.reset( + VectorTypeSyntheticFrontEndCreator(nullptr, valobj.GetSP())); + if (!synthetic_children.get()) return false; synthetic_children->Update();
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits