[clang] [clang][analysis][NFC]place the comment to correct position (PR #117467)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 23 22:45:53 PST 2024
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/117467
None
>From adfb09e1b3fa69ce0f9a8350fe74c0781d1f7b78 Mon Sep 17 00:00:00 2001
From: Congcong Cai <congcongcai0907 at 163.com>
Date: Sun, 24 Nov 2024 14:45:15 +0800
Subject: [PATCH] [clang][analysis][NFC]place the comment to correct position
---
clang/lib/Analysis/ExprMutationAnalyzer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/lib/Analysis/ExprMutationAnalyzer.cpp b/clang/lib/Analysis/ExprMutationAnalyzer.cpp
index 5a95ef36d05024..a94b22e051d0e1 100644
--- a/clang/lib/Analysis/ExprMutationAnalyzer.cpp
+++ b/clang/lib/Analysis/ExprMutationAnalyzer.cpp
@@ -231,11 +231,11 @@ ExprMutationAnalyzer::Analyzer::findPointeeMutation(const Decl *Dec) {
const Stmt *ExprMutationAnalyzer::Analyzer::findMutationMemoized(
const Expr *Exp, llvm::ArrayRef<MutationFinder> Finders,
Memoized::ResultMap &MemoizedResults) {
+ // Assume Exp is not mutated before analyzing Exp.
auto [Memoized, Inserted] = MemoizedResults.try_emplace(Exp);
if (!Inserted)
return Memoized->second;
- // Assume Exp is not mutated before analyzing Exp.
if (isUnevaluated(Exp))
return nullptr;
More information about the cfe-commits
mailing list