diff options
author | Anton Bikineev <bikineev@chromium.org> | 2021-03-04 16:18:35 +0100 |
---|---|---|
committer | Anton Bikineev <bikineev@chromium.org> | 2021-03-09 16:56:20 +0100 |
commit | 4f8e299785e860cf974d696d7ca83b70a94977fe (patch) | |
tree | 9b10f7c2ba198fa838f819d33f3bd9887523cc24 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 46d4d1fea401de1d22fe746077a4ca4dd7e137b4 (diff) | |
download | llvm-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