aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2019-11-10 16:12:29 -0500
committerJames Y Knight <jyknight@google.com>2019-11-16 09:52:07 -0500
commitbf142fc43347d8a35a71f46f7dda7e2a0a992e0d (patch)
tree637c0d55792d11174365c5ffd6bd2d8f2d392990 /clang/lib/CodeGen/CodeGenModule.cpp
parent5987cc1bb5d5eb624135e76a6b3ade1aef94caf7 (diff)
downloadllvm-bf142fc43347d8a35a71f46f7dda7e2a0a992e0d.zip
llvm-bf142fc43347d8a35a71f46f7dda7e2a0a992e0d.tar.gz
llvm-bf142fc43347d8a35a71f46f7dda7e2a0a992e0d.tar.bz2
MCObjectStreamer: assign MCSymbols in the dummy fragment to offset 0.
In MCObjectStreamer, when there is no current fragment, initially symbols are created in a "pending" state and assigned to a dummy empty fragment. Previously, they were not being assigned an offset, and thus evaluateAbsolute would fail if trying to evaluate an expression 'a - b', where both 'a' and 'b' were in this pending state. Also slightly refactored the EmitLabel overload which takes an MCFragment for clarity. Fixes: https://llvm.org/PR41825 Differential Revision: https://reviews.llvm.org/D70062
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions