aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorapple-fcloutier <75502309+apple-fcloutier@users.noreply.github.com>2025-03-06 09:12:22 -0800
committerGitHub <noreply@github.com>2025-03-06 09:12:22 -0800
commitc628e8e9ea86a225af846875740d0189f7cd3722 (patch)
tree6992c2814497eca1cab1542c57d2b8ab1c5b9c49 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent81089f0fd16e4eaae06f1a4be9611303c4f1cabf (diff)
downloadllvm-c628e8e9ea86a225af846875740d0189f7cd3722.zip
llvm-c628e8e9ea86a225af846875740d0189f7cd3722.tar.gz
llvm-c628e8e9ea86a225af846875740d0189f7cd3722.tar.bz2
[clang] Fix FP -Wformat in functions with 2+ attribute((format)) (#129954)
When defining functions with two or more format attributes, if the format strings don't have the same format family, there is a false positive warning that the incorrect kind of format string is being passed at forwarded format string call sites. This happens because we check that the format string family of each format attribute is compatible before we check that we're using the associated format parameter. The fix is to move the check down one scope, after we've established that we are checking the right parameter. Tests are updated to include a true negative and a true positive of this situation.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions