Skip to content

Commit 1869ca2

Browse files
committed
Use auto
1 parent 77479c6 commit 1869ca2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/IR/Operator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ class FPMathOperator : public Operator {
329329
/// Returns true if `Ty` is a supported floating-point type for phi, select,
330330
/// or call FPMathOperators.
331331
static bool isSupportedFloatingPointType(Type *Ty) {
332-
if (StructType *StructTy = dyn_cast<StructType>(Ty)) {
332+
if (auto *StructTy = dyn_cast<StructType>(Ty)) {
333333
if (!StructTy->isLiteral() || !StructTy->containsHomogeneousTypes())
334334
return false;
335335
Ty = StructTy->elements().front();
336-
} else if (ArrayType *ArrayTy = dyn_cast<ArrayType>(Ty)) {
336+
} else if (auto *ArrayTy = dyn_cast<ArrayType>(Ty)) {
337337
do {
338338
Ty = ArrayTy->getElementType();
339339
} while ((ArrayTy = dyn_cast<ArrayType>(Ty)));

0 commit comments

Comments
 (0)