Skip to content

Commit ba3aa14

Browse files
Merge pull request #40673 from adrian-prantl/77344315-5.6
Fix the module hash stored in -gmodules skeleton units
2 parents aec1c8c + 17e7ea1 commit ba3aa14

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -736,9 +736,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
736736
// but LLVM detects skeleton CUs by looking for a non-zero DWO id.
737737
// We use the lower 64 bits for debug info.
738738
uint64_t Signature =
739-
Desc.getSignature()
740-
? (uint64_t)Desc.getSignature()[1] << 32 | Desc.getSignature()[0]
741-
: ~1ULL;
739+
Desc.getSignature() ? Desc.getSignature().truncatedValue() : ~1ULL;
742740

743741
// Handle Clang modules.
744742
if (ClangModule) {

0 commit comments

Comments
 (0)