[PATCH] D146412: [NFC] Fix potential for use-after-free in DumpModuleInfoAction
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 29 05:52:33 PDT 2023
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
This looks much better to me, thank you! LGTM with one small nit for safety.
================
Comment at: clang/include/clang/Frontend/FrontendActions.h:191
+ DumpModuleInfoAction() = default;
+ DumpModuleInfoAction(std::shared_ptr<llvm::raw_ostream> Out)
+ : OutputStream(Out) {}
----------------
A bit of extra safety around implicit conversions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146412/new/
https://reviews.llvm.org/D146412
More information about the cfe-commits
mailing list