summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Frontend/InitPreprocessor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp
index 877c788a1f..9f31d924bc 100644
--- a/lib/Frontend/InitPreprocessor.cpp
+++ b/lib/Frontend/InitPreprocessor.cpp
@@ -211,7 +211,9 @@ static void DefineTypeSize(const char *MacroName, unsigned TypeWidth,
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);
}