diff options
author | Fangrui Song <maskray@google.com> | 2020-05-22 19:57:21 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-05-22 20:01:40 -0700 |
commit | c693b9c321d5a40d012340619674cf790c9ac86c (patch) | |
tree | dedd9e8ca3a986a4a22a2af25ec453949868fe79 /llvm/lib/MC/MCDwarf.cpp | |
parent | 8a9f09df42867d05e9b2b64df715595a2aab647a (diff) | |
download | llvm-c693b9c321d5a40d012340619674cf790c9ac86c.zip llvm-c693b9c321d5a40d012340619674cf790c9ac86c.tar.gz llvm-c693b9c321d5a40d012340619674cf790c9ac86c.tar.bz2 |
[MC] Fix double negation of DW_CFA_def_cfa_offset
Negations are incorrectly added in two places and the code works just
because the negations cancel each other.
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r-- | llvm/lib/MC/MCDwarf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp index 48f585c..d0fb77f6 100644 --- a/llvm/lib/MC/MCDwarf.cpp +++ b/llvm/lib/MC/MCDwarf.cpp @@ -1394,7 +1394,7 @@ void FrameEmitterImpl::emitCFIInstruction(const MCCFIInstruction &Instr) { if (IsRelative) CFAOffset += Instr.getOffset(); else - CFAOffset = -Instr.getOffset(); + CFAOffset = Instr.getOffset(); Streamer.emitULEB128IntValue(CFAOffset); |