aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-08-21 16:08:37 +0200
committerRaphael Isemann <teemperor@gmail.com>2020-08-21 16:08:37 +0200
commitc1dd5df4255cd870e96a59e73163b22d85fbaba3 (patch)
treeb66df9018e153896abd396bbbed4477e1ccb2e67 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parent8eded24bf46c05ffd110d521f58320cdee93866e (diff)
downloadllvm-c1dd5df4255cd870e96a59e73163b22d85fbaba3.zip
llvm-c1dd5df4255cd870e96a59e73163b22d85fbaba3.tar.gz
llvm-c1dd5df4255cd870e96a59e73163b22d85fbaba3.tar.bz2
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.
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-rw-r--r--clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp6
1 files changed, 3 insertions, 3 deletions
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.