diff options
author | Ryosuke Niwa <rniwa@webkit.org> | 2025-03-10 21:01:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-10 21:01:39 -0700 |
commit | 3ce43c8b16a6aefe79ce976b1340ccd493cf533a (patch) | |
tree | 71d2fd92411c30625a424a2a79dc0f837ab2bb85 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | 9a5a8c9a8072d9af9cea087e506ea213bd89c0f5 (diff) | |
download | llvm-3ce43c8b16a6aefe79ce976b1340ccd493cf533a.zip llvm-3ce43c8b16a6aefe79ce976b1340ccd493cf533a.tar.gz llvm-3ce43c8b16a6aefe79ce976b1340ccd493cf533a.tar.bz2 |
[WebKit checkers] Don't treat virtual functions as safe. (#129632)
Prior to this PR, WebKit checkers erroneously treated functions to be
safe if it has a trivial body even if it was marked as virtual. In the
case of a virtual function, it can have an override which does not pass
the triviality check so we must not make such an assumption.
This PR also restricts the allowed operator overloading while finding
the pointer origin to just operators on smart pointer types: Ref,
RefPtr, CheckedRef, CheckedPtr, RetainPtr, WeakPtr, WeakRef, unique_ptr,
and UniqueRef.
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions