Skip to content

Conversation

@ziqingluo-90
Copy link

In -Wunsafe-buffer-usage, many safe pattern checks can benefit from
constant folding. This commit improves null-terminated pointer checks by
folding conditional expressions.

rdar://159374822

Conflicts:
clang/lib/Analysis/UnsafeBufferUsage.cpp

(cherry picked from commit 4058751)

 Conflicts:
	clang/lib/Analysis/UnsafeBufferUsage.cpp

(cherry picked from commit 4058751)
@ziqingluo-90 ziqingluo-90 requested a review from a team as a code owner November 18, 2025 23:18
@ziqingluo-90
Copy link
Author

@swift-ci test llvm

@ziqingluo-90
Copy link
Author

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants