From aae321d2530865e5a30afb068c0eb69905bde417 Mon Sep 17 00:00:00 2001 From: David Stuttard Date: Thu, 29 Nov 2018 15:56:36 +0000 Subject: [PATCH] Fix: Add support for TFE/LWE in image intrinsic My change svn-id: 347871 caused a buildbot failure due to an unused variable def (used in an assert). Change-Id: Ia882d18bb6fa79b4d7bbfda422b9ea5d23eab336 llvm-svn: 347876 --- 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 e3d6b7941ee..1f53af1b505 100644 --- a/lib/Target/AMDGPU/SIISelLowering.cpp +++ b/lib/Target/AMDGPU/SIISelLowering.cpp @@ -830,8 +830,7 @@ static MVT memVTFromAggregate(Type *Ty) { NumElts = 1; } - Type *FlagComponent = Ty->getContainedType(1); - assert(FlagComponent->isIntegerTy(32) && "Expected int32 type"); + assert(Ty->getContainedType(1)->isIntegerTy(32) && "Expected int32 type"); // Calculate the size of the memVT type from the aggregate unsigned Pow2Elts = 0;