From 9066575ebea754ddecd1844e45ac5f6d2ee62d0e Mon Sep 17 00:00:00 2001 From: David Stuttard Date: Thu, 22 Jun 2017 17:15:49 +0000 Subject: [PATCH] [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 --- lib/Target/AMDGPU/SIISelLowering.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); -- 2.11.0