aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/DFAPacketizer.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2012-02-15 09:59:46 +0000
committerHans Wennborg <hans@hanshq.net>2012-02-15 09:59:46 +0000
commitd99d688358d9383b4cedb824d6ddfe36e2aa4a6d (patch)
tree6082e708fb78bc39e9fcdec2d78ceefecc0b88e7 /llvm/lib/CodeGen/DFAPacketizer.cpp
parentf12cea425709e39992e4c3464fbca8654d11ce5a (diff)
downloadllvm-d99d688358d9383b4cedb824d6ddfe36e2aa4a6d.zip
llvm-d99d688358d9383b4cedb824d6ddfe36e2aa4a6d.tar.gz
llvm-d99d688358d9383b4cedb824d6ddfe36e2aa4a6d.tar.bz2
Make -Wformat fix-its preserve original conversion specifiers.
This commit makes PrintfSpecifier::fixType() and ScanfSpecifier::fixType() only fix a conversion specification enough that Clang wouldn't warn about it, as opposed to always changing it to use the "canonical" conversion specifier. (PR11975) This preserves the user's choice of conversion specifier in cases like: printf("%a", (long double)1); where we previously suggested "%Lf", we now suggest "%La" printf("%x", (long)1); where we previously suggested "%ld", we now suggest "%lx". llvm-svn: 150578
Diffstat (limited to 'llvm/lib/CodeGen/DFAPacketizer.cpp')
0 files changed, 0 insertions, 0 deletions