[all-commits] [llvm/llvm-project] 7ed412: [analyzer] Remove trivially true condition (#152850)
Balazs Benics via All-commits
all-commits at lists.llvm.org
Mon Aug 11 05:43:04 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7ed412a9b80c57a4e4da57d2187c1acc33e42e04
https://github.com/llvm/llvm-project/commit/7ed412a9b80c57a4e4da57d2187c1acc33e42e04
Author: Balazs Benics <benicsbalazs at gmail.com>
Date: 2025-08-11 (Mon, 11 Aug 2025)
Changed paths:
M clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
Log Message:
-----------
[analyzer] Remove trivially true condition (#152850)
Addresses
https://github.com/llvm/llvm-project/pull/83027#discussion_r2264102109
We can only reach this part by a non-null `Ptr`, which also implies a
dereference of `PtrExpr`. Consequently, `PtrExpr` cannot be null here so
the check is pointless.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list