From 3e48163a45cd6ff2d9e6ca572e931b7f46122ade Mon Sep 17 00:00:00 2001 From: Alex B Date: Thu, 13 Mar 2025 12:28:17 -0700 Subject: [PATCH] [GSYM] Fix incorrect comparisson in gSYM creation --- llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp b/llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp index ea989767d111c..290caa5f10782 100644 --- a/llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp +++ b/llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp @@ -324,8 +324,8 @@ static void convertFunctionLineTable(OutputAggregator &Out, CUInfo &CUI, // when it refers to an empty line sequence. In such cases, the DWARF linker // will exclude the empty sequence from the final output and assign // `UINT64_MAX` to the `DW_AT_LLVM_stmt_sequence` attribute. - auto StmtSeqVal = dwarf::toSectionOffset(StmtSeqAttr, UINT64_MAX); - if (StmtSeqVal != UINT32_MAX) + uint64_t StmtSeqVal = dwarf::toSectionOffset(StmtSeqAttr, UINT64_MAX); + if (StmtSeqVal != UINT64_MAX) StmtSeqOffset = StmtSeqVal; }