diff options
| author | Congcong Cai <congcongcai0907@163.com> | 2024-11-24 14:45:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-24 14:45:59 +0800 |
| commit | 68a48ec90fb6609b964addcc99a55d16eee884a0 (patch) | |
| tree | 6e8ee4813fa527954c9a9843a8464e026f469a4d /clang/lib/Analysis/ExprMutationAnalyzer.cpp | |
| parent | c85c77c054f3e330c23501db115b1adc505b9805 (diff) | |
[clang][analysis][NFC]place the comment to correct position (#117467)
Diffstat (limited to 'clang/lib/Analysis/ExprMutationAnalyzer.cpp')
| -rw-r--r-- | clang/lib/Analysis/ExprMutationAnalyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/ExprMutationAnalyzer.cpp b/clang/lib/Analysis/ExprMutationAnalyzer.cpp index 5a95ef36d050..a94b22e051d0 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; |
