r180024 - Use the ugly PRIx64 macro to make format string portable.
Benjamin Kramer
benny.kra at googlemail.com
Mon Apr 22 09:10:38 PDT 2013
Author: d0k
Date: Mon Apr 22 11:10:38 2013
New Revision: 180024
URL: http://llvm.org/viewvc/llvm-project?rev=180024&view=rev
Log:
Use the ugly PRIx64 macro to make format string portable.
This is debugging code so functionality isn't a concern, but mingw32 warns
because it doesn't understand the %llx format specifier.
Modified:
cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=180024&r1=180023&r2=180024&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Mon Apr 22 11:10:38 2013
@@ -2393,7 +2393,7 @@ llvm::Constant *CGObjCCommonMac::getBitm
printf("\n Inline instruction for BYREF variable layout: ");
else
printf("\n Inline instruction for block variable layout: ");
- printf("0x0%llx\n", (unsigned long long)Result);
+ printf("0x0%" PRIx64 "\n", Result);
}
if (WordSizeInBytes == 8) {
const llvm::APInt Instruction(64, Result);
More information about the cfe-commits
mailing list