diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/Analysis/CFG.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/Analysis/CFG.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/contrib/llvm-project/clang/lib/Analysis/CFG.cpp b/contrib/llvm-project/clang/lib/Analysis/CFG.cpp index 03ab4c6fdf29..64e6155de090 100644 --- a/contrib/llvm-project/clang/lib/Analysis/CFG.cpp +++ b/contrib/llvm-project/clang/lib/Analysis/CFG.cpp @@ -1788,10 +1788,7 @@ static QualType getReferenceInitTemporaryType(const Expr *Init, } // Skip sub-object accesses into rvalues. - SmallVector<const Expr *, 2> CommaLHSs; - SmallVector<SubobjectAdjustment, 2> Adjustments; - const Expr *SkippedInit = - Init->skipRValueSubobjectAdjustments(CommaLHSs, Adjustments); + const Expr *SkippedInit = Init->skipRValueSubobjectAdjustments(); if (SkippedInit != Init) { Init = SkippedInit; continue; @@ -2042,7 +2039,7 @@ void CFGBuilder::addImplicitDtorsForDestructor(const CXXDestructorDecl *DD) { QualType QT = FI->getType(); // It may be a multidimensional array. while (const ConstantArrayType *AT = Context->getAsConstantArrayType(QT)) { - if (AT->getSize() == 0) + if (AT->isZeroSize()) break; QT = AT->getElementType(); } @@ -2136,7 +2133,7 @@ bool CFGBuilder::hasTrivialDestructor(const VarDecl *VD) const { // Check for constant size array. Set type to array element type. while (const ConstantArrayType *AT = Context->getAsConstantArrayType(QT)) { - if (AT->getSize() == 0) + if (AT->isZeroSize()) return true; QT = AT->getElementType(); } |