[all-commits] [llvm/llvm-project] 7438a0: [-Wunsafe-buffer-usage] Fix assert when constexpr ...
Thomas Sepez via All-commits
all-commits at lists.llvm.org
Mon Feb 10 10:35:13 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7438a024b66695fd9a22571da901533e6771a617
https://github.com/llvm/llvm-project/commit/7438a024b66695fd9a22571da901533e6771a617
Author: Thomas Sepez <tsepez at users.noreply.github.com>
Date: 2025-02-10 (Mon, 10 Feb 2025)
Changed paths:
M clang/lib/Analysis/UnsafeBufferUsage.cpp
Log Message:
-----------
[-Wunsafe-buffer-usage] Fix assert when constexpr size passed to snprintf() (#119786) (#124022)
EvaluateAsConstExpr() can return an lvalue which is not compatible
with a subsequent getInt() call. Instead, use EvaluateAsInt() which
will use all techniques availble to get an int result compatible
with the subsequent getInt() call.
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