Skip to content

Commit 214fb43

Browse files
committed
MCExpr: simplify evaluateAsRelocatableImpl after https://reviews.llvm.org/D156505
1 parent cc08826 commit 214fb43

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/MC/MCExpr.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -655,11 +655,7 @@ bool MCExpr::evaluateAsRelocatableImpl(MCValue &Res, const MCAssembler *Asm,
655655
Res);
656656

657657
case MCBinaryExpr::Add:
658-
return evaluateSymbolicAdd(
659-
Asm, Addrs, InSet, LHSValue,
660-
MCValue::get(RHSValue.getSymA(), RHSValue.getSymB(),
661-
RHSValue.getConstant(), RHSValue.getRefKind()),
662-
Res);
658+
return evaluateSymbolicAdd(Asm, Addrs, InSet, LHSValue, RHSValue, Res);
663659
}
664660
}
665661

0 commit comments

Comments
 (0)