[llvm] r333397 - [AMDGPU] Fixed build warning
Tim Renouf via llvm-commits
llvm-commits at lists.llvm.org
Tue May 29 01:15:37 PDT 2018
Author: tpr
Date: Tue May 29 01:15:37 2018
New Revision: 333397
URL: http://llvm.org/viewvc/llvm-project?rev=333397&view=rev
Log:
[AMDGPU] Fixed build warning
Summary:
V2: Use cast instead of extra if.
Subscribers: arsenm, kzhuravl, wdng, nhaehnle, yaxunl, dstuttard, t-tye, llvm-commits
Differential Revision: https://reviews.llvm.org/D47426
Change-Id: I6ac31da0306f79706960284a7ebd7b9c6237a83a
Modified:
llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp?rev=333397&r1=333396&r2=333397&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp Tue May 29 01:15:37 2018
@@ -3601,10 +3601,9 @@ SDValue SITargetLowering::adjustLoadValu
// Change from v4f16/v2f16 to EquivLoadVT.
SDVTList VTList = DAG.getVTList(EquivLoadVT, MVT::Other);
- SDValue Load
- = DAG.getMemIntrinsicNode(IsIntrinsic ? ISD::INTRINSIC_W_CHAIN : Opcode, DL,
- VTList, Ops, M->getMemoryVT(),
- M->getMemOperand());
+ SDValue Load = DAG.getMemIntrinsicNode(
+ IsIntrinsic ? (unsigned)ISD::INTRINSIC_W_CHAIN : Opcode,
+ DL, VTList, Ops, M->getMemoryVT(), M->getMemOperand());
SDValue Adjusted = adjustLoadValueTypeImpl(Load, LoadVT, DL, DAG, Unpacked);
More information about the llvm-commits
mailing list