Fix incorrect format string in debug output.
llvm-svn: 143768
This commit is contained in:
parent
5717049d8e
commit
5b08d9adf5
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue