[AMDGPU] Fix -Wunused-variable after e5823bf806ca9fa6f87583065b3898a2edabce57
authorFangrui Song <i@maskray.me>
Tue, 21 Jan 2020 06:41:13 +0000 (22:41 -0800)
committerFangrui Song <i@maskray.me>
Tue, 21 Jan 2020 06:41:13 +0000 (22:41 -0800)
llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp

index a7c2e4e..cfa52ec 100644 (file)
@@ -654,7 +654,6 @@ Value* AMDGPUCodeGenPrepare::expandDivRem24(IRBuilder<> &Builder,
   if (IsSigned)
     ++DivBits;
 
-  Type *Ty = Num->getType();
   Type *I32Ty = Builder.getInt32Ty();
   Type *F32Ty = Builder.getFloatTy();
   ConstantInt *One = Builder.getInt32(1);