[llvm-branch-commits] [clang] [FlowSensitive] [StatusOr] cache pointers for all const methods (PR #179791)
Florian Mayer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Feb 5 10:10:17 PST 2026
https://github.com/fmayer updated https://github.com/llvm/llvm-project/pull/179791
>From 3f4c212c6c919e8c6cbb6582f2f1489725b803a5 Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Wed, 4 Feb 2026 14:00:21 -0800
Subject: [PATCH] fix
Created using spr 1.3.6
---
.../FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp b/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp
index 396b2d96093a0..0491f40c225f7 100644
--- a/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp
+++ b/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp
@@ -3970,7 +3970,6 @@ TEST_P(UncheckedStatusOrAccessModelTest, PairIterator) {
};
void target() {
if (auto it = Make<iterator>(); it->second.ok()) {
- // This is a false positive. Fix and remove the unsafe.
it->second.value();
}
}
More information about the llvm-branch-commits
mailing list