Skip to content

Commit 17e7ea1

Browse files
committed
Fix the module hash stored in -gmodules skeleton units
by using the proper API. The old code produced the address of the hash. This fixes a warning printed by LLDB and dsymutil about module hash mismatches and makes the build build products more deterministic. rdar://77344315 (cherry picked from commit 1adb0b3)
1 parent d60f184 commit 17e7ea1

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)