aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2023-10-02 11:32:54 -0700
committerGitHub <noreply@github.com>2023-10-02 11:32:54 -0700
commit0b07b06effe5fdf779b75bb5ac6cf15e477cb0be (patch)
tree14860e04d80890d3fcf148975ab9db74284f644a /llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
parente0f86ca2004b2d87ffe3c1e8242650a29fa98a82 (diff)
downloadllvm-0b07b06effe5fdf779b75bb5ac6cf15e477cb0be.zip
llvm-0b07b06effe5fdf779b75bb5ac6cf15e477cb0be.tar.gz
llvm-0b07b06effe5fdf779b75bb5ac6cf15e477cb0be.tar.bz2
[Sema] Use underlying type of scoped enum for -Wformat diagnostics (#67378)
Right now, `-Wformat` for a scoped enum will suggest a cast based on the format specifier being used. This can lead to incorrect results, e.g. attempting to format a scoped enum with `%s` would suggest casting to `char *` instead of fixing the specifier. Change the logic to treat the scoped enum's underlying type as the intended type to be printed, and suggest format specifier changes and casts based on that.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp')
0 files changed, 0 insertions, 0 deletions