Call MCSymbolRefExpr::create() with a MCSymbol* argument, not with a StringRef
of the Symbol's name, in order to avoid creating invalid temporary symbols for
relative labels (e.g. {$,.L}tmp00, {$,.L}tmp10 etc.).
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM with a couple nits.
In the commit message, '$tmp symbol operands' should be 'relative branches'.
Also, I suspect clang-format would format the changes differently. If this is the case could you format it the way clang-format would?