forked from OSchip/llvm-project
[MC] Ignore VK_WEAKREF in MCValue::getAccessVariant
MCSymbolRefExpr::getVariantKindForName does not return VK_WEAKREF, so this code path is not exercised. Moreoever, .weakref is probably a feature that nobody uses.
This commit is contained in:
parent
fdb408f348
commit
2b0256e49b
|
@ -54,8 +54,5 @@ MCSymbolRefExpr::VariantKind MCValue::getAccessVariant() const {
|
|||
if (!A)
|
||||
return MCSymbolRefExpr::VK_None;
|
||||
|
||||
MCSymbolRefExpr::VariantKind Kind = A->getKind();
|
||||
if (Kind == MCSymbolRefExpr::VK_WEAKREF)
|
||||
return MCSymbolRefExpr::VK_None;
|
||||
return Kind;
|
||||
return A->getKind();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue