We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95756e6 commit 0004c37Copy full SHA for 0004c37
llvm/lib/MC/MCExpr.cpp
@@ -478,7 +478,13 @@ static bool canExpand(const MCSymbol &Sym, bool InSet) {
478
if (Sym.isWeakExternal())
479
return false;
480
481
- Sym.getVariableValue(true);
+ const MCExpr *Expr = Sym.getVariableValue(true);
482
+ // Special case for llvm-ml alias
483
+ const auto *Inner = dyn_cast<MCSymbolRefExpr>(Expr);
484
+ if (Inner) {
485
+ if (Inner->getKind() == MCSymbolRefExpr::VK_WEAKREF)
486
+ return false;
487
+ }
488
489
if (InSet)
490
return true;
0 commit comments