[llvm] fd13cc0 - [RISCV] Use Subtarget variable instaed of TLI.getSubtarget(). NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 10:15:22 PDT 2024
Author: Craig Topper
Date: 2024-09-06T10:13:26-07:00
New Revision: fd13cc03bdc9696bcab98ddb9b177ed89650ca30
URL: https://github.com/llvm/llvm-project/commit/fd13cc03bdc9696bcab98ddb9b177ed89650ca30
DIFF: https://github.com/llvm/llvm-project/commit/fd13cc03bdc9696bcab98ddb9b177ed89650ca30.diff
LOG: [RISCV] Use Subtarget variable instaed of TLI.getSubtarget(). NFC
Added:
Modified:
llvm/lib/Target/RISCV/RISCVCallingConv.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVCallingConv.cpp b/llvm/lib/Target/RISCV/RISCVCallingConv.cpp
index 48f91bba090446..c6a66e69401a6f 100644
--- a/llvm/lib/Target/RISCV/RISCVCallingConv.cpp
+++ b/llvm/lib/Target/RISCV/RISCVCallingConv.cpp
@@ -607,7 +607,7 @@ bool llvm::CC_RISCV_FastCC(unsigned ValNo, MVT ValVT, MVT LocVT,
// Try and pass the address via a "fast" GPR.
if (MCRegister GPRReg = State.AllocateReg(getFastCCArgGPRs(ABI))) {
LocInfo = CCValAssign::Indirect;
- LocVT = TLI.getSubtarget().getXLenVT();
+ LocVT = Subtarget.getXLenVT();
State.addLoc(CCValAssign::getReg(ValNo, ValVT, GPRReg, LocVT, LocInfo));
} else if (ValVT.isFixedLengthVector()) {
auto StackAlign =
More information about the llvm-commits
mailing list