[PATCH] D48608: [CFG] [analyzer] Add construction contexts for C++ objects returned from Objective-C messages.
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 27 13:34:27 PDT 2018
NoQ marked 2 inline comments as done.
NoQ added inline comments.
================
Comment at: lib/Analysis/CFG.cpp:799
+ ConstructionContextMap.lookup(ME)) {
+ cleanupConstructionContext(ME);
+ if (const auto *CC = ConstructionContext::createFromLayers(
----------------
george.karpenkov wrote:
> Do we want to cleanup construction context here even if the condition below is not met?
Yeah, most certainly. Failure to create construction context from existing layers indicates that we've encountered a valid set of layers that's currently not supported. We still need to inform the rest of the builder that these layers were taken into account rather than leaked.
https://reviews.llvm.org/D48608
More information about the cfe-commits
mailing list