Don't use '%ll', this doesn't workin on Win32.

llvm-svn: 80933
This commit is contained in:
Daniel Dunbar 2009-09-03 19:23:49 +00:00
parent c0683b909a
commit fe07aecd37
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}