1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

NVPTXTargetLowering::LowerReturn - Pass DataLayout by reference. NFCI.

This commit is contained in:
Simon Pilgrim 2021-06-07 17:10:19 +01:00
parent eef4c454f0
commit 6b449d392c

View File

@ -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);