[cfe-commits] r80933 - /cfe/trunk/lib/Frontend/InitPreprocessor.cpp
Daniel Dunbar
daniel at zuster.org
Thu Sep 3 12:23:49 PDT 2009
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);
}
More information about the cfe-commits
mailing list