diff options
author | Kazu Hirata <kazu@google.com> | 2023-07-21 16:14:41 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-07-21 16:14:41 -0700 |
commit | 03612b2c1aa2e340d1d12c6dbde94c35bc66a43a (patch) | |
tree | 856bb01f8195198cf927bb8d1fff5e54942218c6 | |
parent | 62a1fbe9f7f95210480e166b9e4eb02a1389f54d (diff) | |
download | llvm-03612b2c1aa2e340d1d12c6dbde94c35bc66a43a.zip llvm-03612b2c1aa2e340d1d12c6dbde94c35bc66a43a.tar.gz llvm-03612b2c1aa2e340d1d12c6dbde94c35bc66a43a.tar.bz2 |
[AMDGPU] Fix an unused variable warning
This patch fixes:
llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp:1006:9: error:
unused variable 'Ty' [-Werror,-Wunused-variable]
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp b/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp index 5c0b3e7..4ec85f3 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp @@ -1003,8 +1003,7 @@ Value *AMDGPUCodeGenPrepareImpl::optimizeWithFDivFast( return nullptr; // Only have fdiv.fast for f32. - Type *Ty = Den->getType(); - assert(Ty->isFloatTy()); + assert(Den->getType()->isFloatTy()); bool NumIsOne = false; if (const ConstantFP *CNum = dyn_cast<ConstantFP>(Num)) { |