aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorAnton Bikineev <bikineev@chromium.org>2021-03-04 16:18:35 +0100
committerAnton Bikineev <bikineev@chromium.org>2021-03-09 16:56:20 +0100
commit4f8e299785e860cf974d696d7ca83b70a94977fe (patch)
tree9b10f7c2ba198fa838f819d33f3bd9887523cc24 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parent46d4d1fea401de1d22fe746077a4ca4dd7e137b4 (diff)
downloadllvm-4f8e299785e860cf974d696d7ca83b70a94977fe.zip
llvm-4f8e299785e860cf974d696d7ca83b70a94977fe.tar.gz
llvm-4f8e299785e860cf974d696d7ca83b70a94977fe.tar.bz2
[Sema] Fix diagnostics for one-byte length modifier
In case a char-literal of type int (C/ObjectiveC) corresponds to a format specifier with the %hh length modifier, don't treat the literal as of type char for issuing diagnostics, as otherwise this results in: printf("%hhd", 'e'); warning: format specifies type 'char' but the argument has type 'char'. Differential revision: https://reviews.llvm.org/D97951
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions