[llvm] r306034 - [AMDGPU] Add intrinsics for tbuffer load and store - build error fix

David Stuttard via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 22 10:15:50 PDT 2017


Author: dstuttard
Date: Thu Jun 22 12:15:49 2017
New Revision: 306034

URL: http://llvm.org/viewvc/llvm-project?rev=306034&view=rev
Log:
[AMDGPU] Add intrinsics for tbuffer load and store - build error fix

Variable was unused in non-debug build (used in assert) causing compile time
warning and eventual build failure

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=306034&r1=306033&r2=306034&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp Thu Jun 22 12:15:49 2017
@@ -3551,8 +3551,7 @@ SDValue SITargetLowering::LowerINTRINSIC
      Op.getOperand(13), // slc
     };
 
-    const ConstantSDNode *tfe = cast<ConstantSDNode>(Op.getOperand(14));
-    assert(tfe->getZExtValue() == 0 &&
+    assert((cast<ConstantSDNode>(Op.getOperand(14)))->getZExtValue() == 0 &&
            "Value of tfe other than zero is unsupported");
 
     EVT VT = Op.getOperand(3).getValueType();




More information about the llvm-commits mailing list