Skip to content

Commit bd08f1b

Browse files
committed
[MC] Remove dead code, NFC
This code was added in 408b5e6, but neither the return value nor `Res` was used in the following code. Differential Revision: https://reviews.llvm.org/D149584
1 parent 74c1fa6 commit bd08f1b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/MC/MCCodeView.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,6 @@ void CodeViewContext::encodeDefRange(MCAsmLayout &Layout,
649649
const MCSymbolRefExpr *SRE = MCSymbolRefExpr::create(RangeBegin, Ctx);
650650
const MCBinaryExpr *BE =
651651
MCBinaryExpr::createAdd(SRE, MCConstantExpr::create(Bias, Ctx), Ctx);
652-
MCValue Res;
653-
BE->evaluateAsRelocatable(Res, &Layout, /*Fixup=*/nullptr);
654652

655653
// Each record begins with a 2-byte number indicating how large the record
656654
// is.

0 commit comments

Comments
 (0)