From 5216ee3a5fc4b203ef7f54a34249e18caf5a7d62 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 1 Nov 2016 17:20:03 +0000 Subject: [PATCH] AMDGPU: Fix buildbots broken by r285704 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285711 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AMDGPU/AMDGPUISelLowering.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Target/AMDGPU/AMDGPUISelLowering.cpp b/lib/Target/AMDGPU/AMDGPUISelLowering.cpp index 153b95e7d818..9ff0b00d6833 100644 --- a/lib/Target/AMDGPU/AMDGPUISelLowering.cpp +++ b/lib/Target/AMDGPU/AMDGPUISelLowering.cpp @@ -1970,8 +1970,7 @@ SDValue AMDGPUTargetLowering::LowerFP_TO_FP16(SDValue Op, SelectionDAG &DAG) con SDLoc DL(Op); SDValue N0 = Op.getOperand(0); - MVT SVT = N0.getSimpleValueType(); - assert(SVT == MVT::f64); + assert (N0.getSimpleValueType() == MVT::f64); // f64 -> f16 conversion using round-to-nearest-even rounding mode. const unsigned ExpMask = 0x7ff;