[llvm-branch-commits] [cfe-branch] r81034 - /cfe/branches/release_26/lib/Frontend/InitPreprocessor.cpp
Tanya Lattner
tonic at nondot.org
Fri Sep 4 13:00:48 PDT 2009
Author: tbrethou
Date: Fri Sep 4 15:00:48 2009
New Revision: 81034
URL: http://llvm.org/viewvc/llvm-project?rev=81034&view=rev
Log:
Merge 80933 from mainline.
Don't use '%ll', this doesn't workin on Win32.
Modified:
cfe/branches/release_26/lib/Frontend/InitPreprocessor.cpp
Modified: cfe/branches/release_26/lib/Frontend/InitPreprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/release_26/lib/Frontend/InitPreprocessor.cpp?rev=81034&r1=81033&r2=81034&view=diff
==============================================================================
--- cfe/branches/release_26/lib/Frontend/InitPreprocessor.cpp (original)
+++ cfe/branches/release_26/lib/Frontend/InitPreprocessor.cpp Fri Sep 4 15:00:48 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);
}
More information about the llvm-branch-commits
mailing list