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 c85c77c commit 68a48ecCopy full SHA for 68a48ec
clang/lib/Analysis/ExprMutationAnalyzer.cpp
@@ -231,11 +231,11 @@ ExprMutationAnalyzer::Analyzer::findPointeeMutation(const Decl *Dec) {
231
const Stmt *ExprMutationAnalyzer::Analyzer::findMutationMemoized(
232
const Expr *Exp, llvm::ArrayRef<MutationFinder> Finders,
233
Memoized::ResultMap &MemoizedResults) {
234
+ // Assume Exp is not mutated before analyzing Exp.
235
auto [Memoized, Inserted] = MemoizedResults.try_emplace(Exp);
236
if (!Inserted)
237
return Memoized->second;
238
- // Assume Exp is not mutated before analyzing Exp.
239
if (isUnevaluated(Exp))
240
return nullptr;
241
0 commit comments