mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Fix the encoding of negative line deltas.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -179,7 +179,7 @@ static inline void EmitDwarfLineTable(MCObjectStreamer *MCOS,
|
||||
if (it->getFlags() & DWARF2_FLAG_EPILOGUE_BEGIN)
|
||||
MCOS->EmitIntValue(dwarf::DW_LNS_set_epilogue_begin, 1);
|
||||
|
||||
int64_t LineDelta = it->getLine() - LastLine;
|
||||
int64_t LineDelta = static_cast<int64_t>(it->getLine()) - LastLine;
|
||||
MCSymbol *Label = it->getLabel();
|
||||
|
||||
// At this point we want to emit/create the sequence to encode the delta in
|
||||
|
Reference in New Issue
Block a user