NoQ added inline comments.
================ Comment at: lib/Analysis/CFG.cpp:1320 + auto *MTE = cast<MaterializeTemporaryExpr>(Child); + findConstructionContexts(ConstructionContextLayer::create( + cfg->getBumpVectorContext(), MTE, Layer), ---------------- george.karpenkov wrote: > There are three repeated calls to `findConstructionContexts`, with only the > second argument changing. Perhaps a helper lambda closure would help? I'll look into this later for the whole function. ================ Comment at: lib/Analysis/CFG.cpp:4959 + const Stmt *S1 = nullptr, *S2 = nullptr, *S3 = nullptr; + const ConstructionContext *CC1 = nullptr; switch (CC->getKind()) { ---------------- george.karpenkov wrote: > begs for a comment differentiating CC from CC1 This variable was in fact unused. https://reviews.llvm.org/D47616 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits