[MC] Ignore VK_WEAKREF in MCValue::getAccessVariant
authorFangrui Song <maskray@google.com>
Mon, 16 Dec 2019 00:03:56 +0000 (16:03 -0800)
committerFangrui Song <maskray@google.com>
Mon, 16 Dec 2019 00:05:46 +0000 (16:05 -0800)
commit2b0256e49bbe5c0dc9c8f4800b1e2f131026cb45
tree792421a9b11f1e2d12bd780528eb30f22df07d64
parentfdb408f348f91f8eb4ecc32527aebfb6286e55cb
[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.
llvm/lib/MC/MCValue.cpp