summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavid Stuttard <david.stuttard@amd.com>2018-11-29 15:56:36 +0000
committerDavid Stuttard <david.stuttard@amd.com>2018-11-29 15:56:36 +0000
commit535c1af0bf906d8a13f42b33953ede634b31878c (patch)
tree2f2b2b16e687364f611fdfc45d1be78181f8bd78 /llvm
parent8b1f5aae7e354d51dd73c5b81a6332cea2021ed4 (diff)
downloadbcm5719-llvm-535c1af0bf906d8a13f42b33953ede634b31878c.tar.gz
bcm5719-llvm-535c1af0bf906d8a13f42b33953ede634b31878c.zip
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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/AMDGPU/SIISelLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index e3d6b7941ee..1f53af1b505 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud