]> granicus.if.org Git - llvm/commitdiff
[AMDGPU] Add intrinsics for tbuffer load and store - build error fix
authorDavid Stuttard <david.stuttard@amd.com>
Thu, 22 Jun 2017 17:15:49 +0000 (17:15 +0000)
committerDavid Stuttard <david.stuttard@amd.com>
Thu, 22 Jun 2017 17:15:49 +0000 (17:15 +0000)
Variable was unused in non-debug build (used in assert) causing compile time
warning and eventual build failure

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306034 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/SIISelLowering.cpp

index 880c0dda945a03e82f82ccc28801c947f0522bdc..000eaaf8975c1f8fb2903d72202b30b41fd4b223 100644 (file)
@@ -3551,8 +3551,7 @@ SDValue SITargetLowering::LowerINTRINSIC_VOID(SDValue Op,
      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();