Fix incorrect format string in debug output.

llvm-svn: 143768
This commit is contained in:
Eli Friedman 2011-11-05 00:38:30 +00:00
parent 5717049d8e
commit 5b08d9adf5
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
#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"
@ -2161,7 +2162,7 @@ ASTContext::getObjCLayout(const ObjCInterfaceDecl *D,
static void PrintOffset(raw_ostream &OS,
CharUnits Offset, unsigned IndentLevel) {
OS << llvm::format("%4d | ", Offset.getQuantity());
OS << llvm::format("%4s | ", llvm::itostr(Offset.getQuantity()).c_str());
OS.indent(IndentLevel * 2);
}