[llvm] [X86] Use EVT constructor instead of static_cast. NFC (PR #189051)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 09:42:07 PDT 2026
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/189051
None
>From a543f73ce7d11d771c13a777769e4759391b2369 Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Fri, 27 Mar 2026 09:41:10 -0700
Subject: [PATCH] [X86] Use EVT constructor instead of static_cast. NFC
---
llvm/lib/Target/X86/X86ISelLowering.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 76bb9db5c5b85..902a2deab46e3 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -30620,10 +30620,9 @@ SDValue X86TargetLowering::LowerWin64_i128OP(SDValue Op, SelectionDAG &DAG) cons
TargetLowering::CallLoweringInfo CLI(DAG);
CLI.setDebugLoc(dl)
.setChain(InChain)
- .setLibCallee(
- DAG.getLibcalls().getLibcallImplCallingConv(LCImpl),
- static_cast<EVT>(MVT::v2i64).getTypeForEVT(*DAG.getContext()), Callee,
- std::move(Args))
+ .setLibCallee(DAG.getLibcalls().getLibcallImplCallingConv(LCImpl),
+ EVT(MVT::v2i64).getTypeForEVT(*DAG.getContext()), Callee,
+ std::move(Args))
.setInRegister()
.setSExtResult(isSigned)
.setZExtResult(!isSigned);
More information about the llvm-commits
mailing list