[llvm] a869f7e - [CodeGen] Remove an unnecessary cast (NFC) (#148764)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 22:18:55 PDT 2025
Author: Kazu Hirata
Date: 2025-07-14T22:18:51-07:00
New Revision: a869f7e82143e836d5c8c145cbe69c4786e545e7
URL: https://github.com/llvm/llvm-project/commit/a869f7e82143e836d5c8c145cbe69c4786e545e7
DIFF: https://github.com/llvm/llvm-project/commit/a869f7e82143e836d5c8c145cbe69c4786e545e7.diff
LOG: [CodeGen] Remove an unnecessary cast (NFC) (#148764)
getExpression() already returns DIExpression *.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
index 03d3e8eab35d0..85efb1bd8aed9 100644
--- a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
@@ -784,7 +784,7 @@ MachineInstr *
InstrEmitter::EmitDbgInstrRef(SDDbgValue *SD,
VRBaseMapType &VRBaseMap) {
MDNode *Var = SD->getVariable();
- const DIExpression *Expr = (DIExpression *)SD->getExpression();
+ const DIExpression *Expr = SD->getExpression();
DebugLoc DL = SD->getDebugLoc();
const MCInstrDesc &RefII = TII->get(TargetOpcode::DBG_INSTR_REF);
More information about the llvm-commits
mailing list