瀏覽代碼

Fix the build by using the correct suffix for 64 bit literals

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258531 91177308-0d34-0410-b5e6-96231b3b80d8
Adrian Prantl 9 年之前
父節點
當前提交
c87ca354aa
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      lib/CodeGen/CGDebugInfo.cpp
  2. 1 1
      lib/CodeGen/ObjectFilePCHContainerOperations.cpp

+ 1 - 1
lib/CodeGen/CGDebugInfo.cpp

@@ -1742,7 +1742,7 @@ CGDebugInfo::getOrCreateModuleRef(ExternalASTSource::ASTSourceDescriptor Mod,
   if (CreateSkeletonCU && IsRootModule) {
   if (CreateSkeletonCU && IsRootModule) {
     // PCH files don't have a signature field in the control block,
     // 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.
     // 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());
     llvm::DIBuilder DIB(CGM.getModule());
     DIB.createCompileUnit(TheCU->getSourceLanguage(), Mod.getModuleName(),
     DIB.createCompileUnit(TheCU->getSourceLanguage(), Mod.getModuleName(),
                           Mod.getPath(), TheCU->getProducer(), true,
                           Mod.getPath(), TheCU->getProducer(), true,

+ 1 - 1
lib/CodeGen/ObjectFilePCHContainerOperations.cpp

@@ -222,7 +222,7 @@ public:
 
 
     // PCH files don't have a signature field in the control block,
     // 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.
     // 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);
     Builder->getModuleDebugInfo()->setDwoId(Signature);
 
 
     // Finalize the Builder.
     // Finalize the Builder.