[clang] 68a48ec - [clang][analysis][NFC]place the comment to correct position (#117467)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 23 22:46:03 PST 2024
Author: Congcong Cai
Date: 2024-11-24T14:45:59+08:00
New Revision: 68a48ec90fb6609b964addcc99a55d16eee884a0
URL: https://github.com/llvm/llvm-project/commit/68a48ec90fb6609b964addcc99a55d16eee884a0
DIFF: https://github.com/llvm/llvm-project/commit/68a48ec90fb6609b964addcc99a55d16eee884a0.diff
LOG: [clang][analysis][NFC]place the comment to correct position (#117467)
Added:
Modified:
clang/lib/Analysis/ExprMutationAnalyzer.cpp
Removed:
################################################################################
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