diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-28 16:25:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-28 16:26:33 +0200 |
commit | 9308f353186fb39a02eddfc281fc72ac1026e0b6 (patch) | |
tree | 7c655cf5e142c811ff4dc652ec6d69c7ce133a57 /compilerplugins/clang/singlevalfields.cxx | |
parent | add IFERROR test case (diff) | |
download | core-9308f353186fb39a02eddfc281fc72ac1026e0b6.tar.gz core-9308f353186fb39a02eddfc281fc72ac1026e0b6.zip |
Adapt to Clang 3.4 (in preparation of a buildbot on CentOS 7)
Change-Id: Ie2859f03b31c57deb7fd0deba3285f782e33b239
Diffstat (limited to 'compilerplugins/clang/singlevalfields.cxx')
-rw-r--r-- | compilerplugins/clang/singlevalfields.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/singlevalfields.cxx b/compilerplugins/clang/singlevalfields.cxx index 79866fa90886..a75b52910c54 100644 --- a/compilerplugins/clang/singlevalfields.cxx +++ b/compilerplugins/clang/singlevalfields.cxx @@ -258,7 +258,7 @@ bool SingleValFields::VisitMemberExpr( const MemberExpr* memberExpr ) if (parent && isa<ReturnStmt>(parent)) { const Stmt* parent2 = parentStmt(parent); if (parent2 && isa<CompoundStmt>(parent2)) { - QualType qt = parentFunction->getReturnType().getDesugaredType(compiler.getASTContext()); + QualType qt = compat::getReturnType(*parentFunction).getDesugaredType(compiler.getASTContext()); if (!qt.isConstQualified() && qt->isReferenceType()) { assignValue = "?"; bPotentiallyAssignedTo = true; @@ -443,10 +443,10 @@ void SingleValFields::checkCallExpr(const Stmt* child, const CallExpr* callExpr, return; } for (unsigned i = 0; i < callExpr->getNumArgs(); ++i) { - if (i >= proto->getNumParams()) // can happen in template code + if (i >= compat::getNumParams(*proto)) // can happen in template code break; if (callExpr->getArg(i) == child) { - QualType qt = proto->getParamTypes()[i].getDesugaredType(compiler.getASTContext()); + QualType qt = compat::getParamType(*proto, i).getDesugaredType(compiler.getASTContext()); if (!qt.isConstQualified() && qt->isReferenceType()) { assignValue = "?"; bPotentiallyAssignedTo = true; |