[cfe-commits] r80933 - /cfe/trunk/lib/Frontend/InitPreprocessor.cpp
Daniel Dunbar
daniel at zuster.org
Fri Sep 4 02:59:46 PDT 2009
Tanya, can you take this for 2.6?
- Daniel
On Thu, Sep 3, 2009 at 12:23 PM, Daniel Dunbar<daniel at zuster.org> wrote:
> Author: ddunbar
> Date: Thu Sep 3 14:23:49 2009
> New Revision: 80933
>
> URL: http://llvm.org/viewvc/llvm-project?rev=80933&view=rev
> Log:
> Don't use '%ll', this doesn't workin on Win32.
>
> Modified:
> cfe/trunk/lib/Frontend/InitPreprocessor.cpp
>
> Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=80933&r1=80932&r2=80933&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
> +++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Thu Sep 3 14:23:49 2009
> @@ -211,7 +211,9 @@
> else
> MaxVal = ~0LL >> (64-TypeWidth);
>
> - sprintf(MacroBuf, "%s=%llu%s", MacroName, MaxVal, ValSuffix);
> + // FIXME: Switch to using raw_ostream and avoid utostr().
> + sprintf(MacroBuf, "%s=%s%s", MacroName, llvm::utostr(MaxVal).c_str(),
> + ValSuffix);
> DefineBuiltinMacro(Buf, MacroBuf);
> }
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
More information about the cfe-commits
mailing list