diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-13 01:06:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-13 01:06:27 +0000 |
commit | 64185cc6090f695c4f97c51cf2adc731f56d1a20 (patch) | |
tree | 4daf868a409c45bee972e011b2f4fc83913fe49b /lib | |
parent | 32c7a5e08cbabb262e3ec080f34652ebf6c39e0f (diff) | |
download | external_llvm-64185cc6090f695c4f97c51cf2adc731f56d1a20.zip external_llvm-64185cc6090f695c4f97c51cf2adc731f56d1a20.tar.gz external_llvm-64185cc6090f695c4f97c51cf2adc731f56d1a20.tar.bz2 |
Fix the encoding of negative line deltas.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/MCDwarf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp index c646529..679f4ee 100644 --- a/lib/MC/MCDwarf.cpp +++ b/lib/MC/MCDwarf.cpp @@ -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 |