]> granicus.if.org Git - clang/commitdiff
Silence -Wformat on platforms where uint64_t is unsigned long.
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 1 Nov 2012 20:26:42 +0000 (20:26 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 1 Nov 2012 20:26:42 +0000 (20:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167249 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index c67e3fd0028f15a29271f6ee9a8ffa9059ebfc4a..676f22ebc5ad01daf302f02d21c9899cd6f9a476 100644 (file)
@@ -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);