From: David Stuttard Date: Thu, 22 Jun 2017 17:15:49 +0000 (+0000) Subject: [AMDGPU] Add intrinsics for tbuffer load and store - build error fix X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9066575ebea754ddecd1844e45ac5f6d2ee62d0e;p=llvm [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306034 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AMDGPU/SIISelLowering.cpp b/lib/Target/AMDGPU/SIISelLowering.cpp index 880c0dda945..000eaaf8975 100644 --- a/lib/Target/AMDGPU/SIISelLowering.cpp +++ b/lib/Target/AMDGPU/SIISelLowering.cpp @@ -3551,8 +3551,7 @@ SDValue SITargetLowering::LowerINTRINSIC_VOID(SDValue Op, Op.getOperand(13), // slc }; - const ConstantSDNode *tfe = cast(Op.getOperand(14)); - assert(tfe->getZExtValue() == 0 && + assert((cast(Op.getOperand(14)))->getZExtValue() == 0 && "Value of tfe other than zero is unsupported"); EVT VT = Op.getOperand(3).getValueType();