[llvm-branch-commits] [clang] [FlowSensitive] [StatusOr] [7/N] Support StatusOr::emplace (PR #163876)
Florian Mayer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Oct 23 11:08:08 PDT 2025
https://github.com/fmayer updated https://github.com/llvm/llvm-project/pull/163876
>From e73fe795255bedcc6e2aabe54f8aea04dc61fee0 Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Wed, 22 Oct 2025 16:23:27 -0700
Subject: [PATCH] fix test
Created using spr 1.3.7
---
.../FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp b/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp
index 42c43a4622f44..767e6f384bef5 100644
--- a/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp
+++ b/clang/unittests/Analysis/FlowSensitive/UncheckedStatusOrAccessModelTestFixture.cpp
@@ -2961,8 +2961,7 @@ TEST_P(UncheckedStatusOrAccessModelTest, Emplace) {
bool sor_ok = sor.ok();
if (b)
sor.emplace(42);
- else if (sor_ok)
- sor.value();
+ sor.value();
}
)cc");
ExpectDiagnosticsFor(R"cc(
More information about the llvm-branch-commits
mailing list