[cfe-commits] r172739 - in /cfe/trunk: lib/Analysis/PrintfFormatString.cpp test/FixIt/format-darwin.m test/FixIt/format.m

Dmitri Gribenko gribozavr at gmail.com
Thu Jan 17 13:04:21 PST 2013


Hi Jordan,

On Thu, Jan 17, 2013 at 8:47 PM, Jordan Rose <jordan_rose at apple.com> wrote:
> Author: jrose
> Date: Thu Jan 17 12:47:16 2013
> New Revision: 172739
>
> URL: http://llvm.org/viewvc/llvm-project?rev=172739&view=rev
> Log:
> Format strings: correct signedness if already correcting width (%d,%u).
>
> It is valid to do this:
>   printf("%u", (int)x);
>
> But if we see this:
>   printf("%lu", (int)x);
>
> ...our fixit should suggest %d, not %u.

Sorry, but it looks like this commit broke Linux/x86-64:

http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/422

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list