[PATCH] D159235: Fix crash when struct with inheritance is initialized with InitExpr

Kinuko Yasuda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 30 16:16:59 PDT 2023


kinu created this revision.
Herald added a reviewer: NoQ.
Herald added a project: All.
kinu requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This fix doesn't fix the problem of non-populated fields in base classes
(even if they are accessed in the code), and therefore could be a cause of
false positives, but fix most (if not all) of crashes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D159235

Files:
  clang/lib/Analysis/FlowSensitive/RecordOps.cpp
  clang/unittests/Analysis/FlowSensitive/TransferTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159235.554854.patch
Type: text/x-patch
Size: 3072 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230830/e7502359/attachment.bin>


More information about the cfe-commits mailing list