Skip to content

Commit bc56bcd

Browse files
committed
Fix auto
Change-Id: I8a9505b7b611d12349509be7271f071965c382e2
1 parent 175740b commit bc56bcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ bool GCNTTIImpl::hasBranchDivergence(const Function *F) const {
307307
}
308308

309309
unsigned GCNTTIImpl::getNumberOfParts(Type *Tp) const {
310-
if (auto VTy = dyn_cast<FixedVectorType>(Tp)) {
310+
if (FixedVectorType *VTy = dyn_cast<FixedVectorType>(Tp)) {
311311
if (DL.getTypeSizeInBits(VTy->getElementType()) == 8) {
312-
auto ElCount = VTy->getElementCount().getFixedValue();
312+
unsigned ElCount = VTy->getElementCount().getFixedValue();
313313
return ElCount / 4;
314314
}
315315
}

0 commit comments

Comments
 (0)