[PATCH] D66179: [LifetimeAnalysis] Support more STL idioms (template forward declaration and DependentNameType)
Gábor Horváth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 21 09:21:19 PDT 2019
xazax.hun added inline comments.
================
Comment at: clang/lib/Sema/SemaInit.cpp:6627
const auto *Ctor = CCE->getConstructor();
const CXXRecordDecl *RD = Ctor->getParent()->getCanonicalDecl();
if (CCE->getNumArgs() > 0 && RD->hasAttr<PointerAttr>())
----------------
You can also remove the `getCanonicalDecl` call here :)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66179/new/
https://reviews.llvm.org/D66179
More information about the cfe-commits
mailing list