Now that we have a portable 64 bit format string use it to make this simple again.

llvm-svn: 143800
This commit is contained in:
Benjamin Kramer 2011-11-05 09:02:52 +00:00
parent f3da529028
commit 96ad717226
1 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,6 @@
#include "clang/Sema/SemaDiagnostic.h"
#include "llvm/Support/Format.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/CrashRecoveryContext.h"
@ -2162,7 +2161,7 @@ ASTContext::getObjCLayout(const ObjCInterfaceDecl *D,
static void PrintOffset(raw_ostream &OS,
CharUnits Offset, unsigned IndentLevel) {
OS << llvm::format("%4s | ", llvm::itostr(Offset.getQuantity()).c_str());
OS << llvm::format("%4" PRId64 " | ", (int64_t)Offset.getQuantity());
OS.indent(IndentLevel * 2);
}