diff --git a/lib/MC/MCValue.cpp b/lib/MC/MCValue.cpp index 81da47b2ece..b6bcec9b2ca 100644 --- a/lib/MC/MCValue.cpp +++ b/lib/MC/MCValue.cpp @@ -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(); }