We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f354981 commit b9544ebCopy full SHA for b9544eb
clang/lib/Analysis/ExprMutationAnalyzer.cpp
@@ -813,10 +813,7 @@ FunctionParmMutationAnalyzer::findMutation(const ParmVarDecl *Parm) {
813
// before analyzing parameters of A. Then when analyzing the second "call A",
814
// FunctionParmMutationAnalyzer can use this memoized value to avoid infinite
815
// recursion.
816
- Results[Parm] = nullptr;
817
- if (const Stmt *S = BodyAnalyzer.findMutation(Parm))
818
- return Results[Parm] = S;
819
- return Results[Parm];
+ return Results[Parm] = BodyAnalyzer.findMutation(Parm);
820
}
821
822
} // namespace clang
0 commit comments