Skip to content

Conversation

steakhal
Copy link
Contributor

This assertion was hit, as reported by a user.
#128427 (comment)

Ideally, we would reduce and add a regression test for this, but I don't have the bandwidth for it.

See the summary of the issue #128427 for the reproducer.

This assertion was hit, as reported by a user.
llvm#128427 (comment)

Ideally, we would reduce and add a regression test for this, but I don't
have the bandwidth for it.

See the summary of the issue llvm#128427 for the reproducer.
@llvmbot llvmbot added the clang Clang issues not falling into any other category label Feb 25, 2025
@llvmbot
Copy link
Member

llvmbot commented Feb 25, 2025

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clang-static-analyzer-1

Author: Balazs Benics (steakhal)

Changes

This assertion was hit, as reported by a user.
#128427 (comment)

Ideally, we would reduce and add a regression test for this, but I don't have the bandwidth for it.

See the summary of the issue #128427 for the reproducer.


Full diff: https://github.com/llvm/llvm-project/pull/128642.diff

1 Files Affected:

  • (modified) clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp (-1)
diff --git a/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
index 8955cb209c399..12bf12a0b2322 100644
--- a/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
@@ -314,7 +314,6 @@ void MacOSKeychainAPIChecker::checkPreStmt(const CallExpr *CE,
     RegionArgIsBad = true;
   }
 
-  assert(ArgSM);
   // Is the argument to the call being tracked?
   const AllocationState *AS = State->get<AllocatedData>(ArgSM);
   if (!AS)

@steakhal steakhal changed the title Revert partially #127017 [analyzer] Partial revert of #127017 Feb 25, 2025
@steakhal steakhal merged commit 87dc245 into llvm:main Feb 25, 2025
11 of 14 checks passed
@steakhal steakhal deleted the bb/partial-revert branch February 25, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:static analyzer clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants