alvinhochun added inline comments.
================ Comment at: lldb/source/Plugins/Process/Windows/Common/DebuggerThread.cpp:427 + + auto view_deleter = [](void *pMem) { ::UnmapViewOfFile(pMem); }; + std::unique_ptr<void, decltype(view_deleter)> pMem( ---------------- mstorsjo wrote: > Do you need a check against `NULL` here in `view_deleter`? I think `unique_ptr` guarantees the deleter won't be called if the pointer is null, so I didn't put a null check here. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126657/new/ https://reviews.llvm.org/D126657 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits