diff options
Diffstat (limited to 'compilerplugins/clang/constparams.cxx')
-rw-r--r-- | compilerplugins/clang/constparams.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/constparams.cxx b/compilerplugins/clang/constparams.cxx index a294e45d58c4..a281d8635900 100644 --- a/compilerplugins/clang/constparams.cxx +++ b/compilerplugins/clang/constparams.cxx @@ -420,6 +420,8 @@ bool ConstParams::checkIfCanBeConst(const Stmt* stmt, const ParmVarDecl* parmVar return true; } else if (isa<SwitchStmt>(parent)) { return true; + } else if (isa<DoStmt>(parent)) { + return true; } else if (isa<CXXDeleteExpr>(parent)) { return false; } else if (isa<VAArgExpr>(parent)) { |