Skip to content

Commit 68a48ec

Browse files
authored
[clang][analysis][NFC]place the comment to correct position (#117467)
1 parent c85c77c commit 68a48ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Analysis/ExprMutationAnalyzer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ ExprMutationAnalyzer::Analyzer::findPointeeMutation(const Decl *Dec) {
231231
const Stmt *ExprMutationAnalyzer::Analyzer::findMutationMemoized(
232232
const Expr *Exp, llvm::ArrayRef<MutationFinder> Finders,
233233
Memoized::ResultMap &MemoizedResults) {
234+
// Assume Exp is not mutated before analyzing Exp.
234235
auto [Memoized, Inserted] = MemoizedResults.try_emplace(Exp);
235236
if (!Inserted)
236237
return Memoized->second;
237238

238-
// Assume Exp is not mutated before analyzing Exp.
239239
if (isUnevaluated(Exp))
240240
return nullptr;
241241

0 commit comments

Comments
 (0)