[llvm] r352982 - [AMDGPU] Fix -Wunused-variable after rL352978
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 2 19:51:52 PST 2019
Author: maskray
Date: Sat Feb 2 19:51:52 2019
New Revision: 352982
URL: http://llvm.org/viewvc/llvm-project?rev=352982&view=rev
Log:
[AMDGPU] Fix -Wunused-variable after rL352978
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp?rev=352982&r1=352981&r2=352982&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp Sat Feb 2 19:51:52 2019
@@ -443,7 +443,6 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo
})
.widenScalarIf(
[=](const LegalityQuery &Query) {
- const LLT &Ty0 = Query.Types[0];
const LLT &Ty1 = Query.Types[1];
return (Ty1.getScalarSizeInBits() < 16);
},
More information about the llvm-commits
mailing list