[PATCH] D111542: [analyzer] Retrieve VLA extent from its redeclaration.

Denys Petrov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 11 06:29:01 PDT 2021


ASDenysPetrov created this revision.
ASDenysPetrov added reviewers: NoQ, martong.
Herald added subscribers: steakhal, manas, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware, xazax.hun.
ASDenysPetrov requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Fix a case when the extent can not be retrieved correctly from VLA declaration. Use redeclaration to get the array extent.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111542

Files:
  clang/lib/StaticAnalyzer/Core/RegionStore.cpp
  clang/test/Analysis/initialization.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111542.378644.patch
Type: text/x-patch
Size: 6156 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211011/897060f7/attachment.bin>


More information about the cfe-commits mailing list