[PATCH] D119300: Use-after-dtor detection for trivial base classes.

2022-03-16 Thread Vitaly Buka via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGc5ea8e913893: Use-after-dtor detection for trivial base classes. (authored by eugenis, committed by vitalybuka). Repository: rG LLVM Github Monore

[PATCH] D119300: Use-after-dtor detection for trivial base classes.

2022-03-16 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka updated this revision to Diff 416040. vitalybuka added a comment. addressing some @kda comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119300/new/ https://reviews.llvm.org/D119300 Files: clang/lib/CodeGen/CGClass.cpp clang/te

[PATCH] D119300: Use-after-dtor detection for trivial base classes.

2022-03-16 Thread Kevin Athey via Phabricator via cfe-commits
kda accepted this revision. kda added inline comments. Comment at: compiler-rt/test/msan/dtor-base-access.cpp:24 +class TrivialBaseAfter { +public: + int tb1; nit: add single space (consistent indent). Comment at: compiler-rt/test/msan/dtor-ba

[PATCH] D119300: Use-after-dtor detection for trivial base classes.

2022-03-16 Thread Kevin Athey via Phabricator via cfe-commits
kda added inline comments. Comment at: clang/lib/CodeGen/CGClass.cpp:1872 // Ignore trivial destructors. + if (BaseClassDecl->hasTrivialDestructor()) { vitalybuka wrote: > kda wrote: > > Maybe not "Ignore"? > @kda I assume it's about inconsistent co

[PATCH] D119300: Use-after-dtor detection for trivial base classes.

2022-03-15 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka accepted this revision. vitalybuka added a comment. Herald added a project: All. @eugenis I will prepare google3 and land it? Comment at: clang/lib/CodeGen/CGClass.cpp:1872 // Ignore trivial destructors. + if (BaseClassDecl->hasTrivialDestructor()) { --

[PATCH] D119300: Use-after-dtor detection for trivial base classes.

2022-02-25 Thread Kevin Athey via Phabricator via cfe-commits
kda added inline comments. Comment at: clang/lib/CodeGen/CGClass.cpp:1872 // Ignore trivial destructors. + if (BaseClassDecl->hasTrivialDestructor()) { Maybe not "Ignore"? Comment at: clang/lib/CodeGen/CGClass.cpp:1907 // I

[PATCH] D119300: Use-after-dtor detection for trivial base classes.

2022-02-11 Thread Evgenii Stepanov via Phabricator via cfe-commits
eugenis updated this revision to Diff 408071. eugenis added a comment. Fix handling of empty base classes and suppress tail calls. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119300/new/ https://reviews.llvm.org/D119300 Files: clang/lib/CodeGe

[PATCH] D119300: Use-after-dtor detection for trivial base classes.

2022-02-08 Thread Evgenii Stepanov via Phabricator via cfe-commits
eugenis created this revision. eugenis added reviewers: kda, vitalybuka. eugenis requested review of this revision. Herald added projects: clang, Sanitizers. Herald added a subscriber: Sanitizers. -fsanitize-memory-use-after-dtor detects memory access after a subobject is destroyed but its memory