From c1dd5df4255cd870e96a59e73163b22d85fbaba3 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Fri, 21 Aug 2020 16:08:37 +0200 Subject: Revert "Correctly emit dwoIDs after ASTFileSignature refactoring (D81347)" This reverts commit a4c3ed42ba5625af54254584d762ebf96cc06942. The test is curiously failing with a plain exit code 1 on Fuchsia. --- clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp') diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index 04bd668..0c7e5f4 100644 --- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -250,10 +250,10 @@ 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. // We use the lower 64 bits for debug info. - uint64_t Signature = - Buffer->Signature ? Buffer->Signature.truncatedValue() : ~1ULL; - + Buffer->Signature + ? (uint64_t)Buffer->Signature[1] << 32 | Buffer->Signature[0] + : ~1ULL; Builder->getModuleDebugInfo()->setDwoId(Signature); // Finalize the Builder. -- cgit v1.1