Skip to content

Commit 28d4cc6

Browse files
committed
MC: Reduce MCSymbolRefExpr::VK_None uses
1 parent 4d7510c commit 28d4cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/include/bolt/Core/MCPlusBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ class MCPlusBuilder {
13931393
return getTargetSymbol(BinaryExpr->getLHS());
13941394

13951395
auto *SymbolRefExpr = dyn_cast<const MCSymbolRefExpr>(Expr);
1396-
if (SymbolRefExpr && SymbolRefExpr->getKind() == MCSymbolRefExpr::VK_None)
1396+
if (SymbolRefExpr && SymbolRefExpr->getSpecifier() == 0)
13971397
return &SymbolRefExpr->getSymbol();
13981398

13991399
return nullptr;

0 commit comments

Comments
 (0)