]> granicus.if.org Git - clang/commitdiff
Fix the build by using the correct suffix for 64 bit literals
authorAdrian Prantl <aprantl@apple.com>
Fri, 22 Jan 2016 19:29:41 +0000 (19:29 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 22 Jan 2016 19:29:41 +0000 (19:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258531 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/ObjectFilePCHContainerOperations.cpp

index 635a2d06a24ce497a0491f81c2ab31a8edafb3ba..efacc35d149ad4cee9d725ed2d552dc81e1cf64d 100644 (file)
@@ -1742,7 +1742,7 @@ CGDebugInfo::getOrCreateModuleRef(ExternalASTSource::ASTSourceDescriptor Mod,
   if (CreateSkeletonCU && IsRootModule) {
     // PCH files don't have a signature field in the control block,
     // but LLVM detects skeleton CUs by looking for a non-zero DWO id.
-    uint64_t Signature = Mod.getSignature() ? Mod.getSignature() : ~1UL;
+    uint64_t Signature = Mod.getSignature() ? Mod.getSignature() : ~1ULL;
     llvm::DIBuilder DIB(CGM.getModule());
     DIB.createCompileUnit(TheCU->getSourceLanguage(), Mod.getModuleName(),
                           Mod.getPath(), TheCU->getProducer(), true,
index f20489275b26b8924dde0d333f6633b272cfa8f5..0e3aa61314e6882a8a4cafa1db0f1cb22c780b73 100644 (file)
@@ -222,7 +222,7 @@ public:
 
     // PCH files don't have a signature field in the control block,
     // but LLVM detects DWO CUs by looking for a non-zero DWO id.
-    uint64_t Signature = Buffer->Signature ? Buffer->Signature : ~1UL;
+    uint64_t Signature = Buffer->Signature ? Buffer->Signature : ~1ULL;
     Builder->getModuleDebugInfo()->setDwoId(Signature);
 
     // Finalize the Builder.