From 4a2874ecc6e44a6f22876c52284d83b5282dd3c1 Mon Sep 17 00:00:00 2001 From: Matt Beaumont-Gay Date: Thu, 1 Nov 2012 20:26:42 +0000 Subject: [PATCH] Silence -Wformat on platforms where uint64_t is unsigned long. llvm-svn: 167249 --- clang/lib/CodeGen/CGObjCMac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index c67e3fd..676f22eb 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -2353,7 +2353,7 @@ llvm::Constant *CGObjCCommonMac::BuildRCBlockLayout(CodeGenModule &CGM, // Block variable layout instruction has been inlined. if (CGM.getLangOpts().ObjCGCBitmapPrint) { printf("\n Inline instruction for block variable layout: "); - printf("0x0%llx\n", Result); + printf("0x0%llx\n", (unsigned long long)Result); } if (WordSizeInBytes == 8) { const llvm::APInt Instruction(64, Result); -- 2.7.4