[llvm] 27f3041 - NVPTXTargetLowering::LowerReturn - Pass DataLayout by reference. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 8 02:42:03 PDT 2021
Author: Simon Pilgrim
Date: 2021-06-08T10:41:01+01:00
New Revision: 27f3041c88ac4e392da7c1f071f8516947c7a1c7
URL: https://github.com/llvm/llvm-project/commit/27f3041c88ac4e392da7c1f071f8516947c7a1c7
DIFF: https://github.com/llvm/llvm-project/commit/27f3041c88ac4e392da7c1f071f8516947c7a1c7.diff
LOG: NVPTXTargetLowering::LowerReturn - Pass DataLayout by reference. NFCI.
Added:
Modified:
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
index b71059f75bef7..d431f20d066f6 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -2653,7 +2653,7 @@ NVPTXTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
if (!isABI)
return Chain;
- const DataLayout DL = DAG.getDataLayout();
+ const DataLayout &DL = DAG.getDataLayout();
SmallVector<EVT, 16> VTs;
SmallVector<uint64_t, 16> Offsets;
ComputePTXValueVTs(*this, DL, RetTy, VTs, &Offsets);
More information about the llvm-commits
mailing list