Skip to content

Commit a869f7e

Browse files
[CodeGen] Remove an unnecessary cast (NFC) (#148764)
getExpression() already returns DIExpression *.
1 parent 7e7340d commit a869f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ MachineInstr *
784784
InstrEmitter::EmitDbgInstrRef(SDDbgValue *SD,
785785
VRBaseMapType &VRBaseMap) {
786786
MDNode *Var = SD->getVariable();
787-
const DIExpression *Expr = (DIExpression *)SD->getExpression();
787+
const DIExpression *Expr = SD->getExpression();
788788
DebugLoc DL = SD->getDebugLoc();
789789
const MCInstrDesc &RefII = TII->get(TargetOpcode::DBG_INSTR_REF);
790790

0 commit comments

Comments
 (0)