Skip to content

Commit

Permalink
[flang] Fix flang-aarch64-latest-gcc build failure due to f295c88
Browse files Browse the repository at this point in the history
Insert a return statement
  • Loading branch information
kkwli committed Jun 26, 2023
1 parent 7ed3c2e commit d45b1b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flang/include/flang/Optimizer/Builder/IntrinsicCall.h
Original file line number Diff line number Diff line change
Expand Up @@ -560,21 +560,23 @@ static inline mlir::Type getTypeHelper(mlir::MLIRContext *context,
break;
}

mlir::Type fTy;
switch (typeId) {
case ParamTypeId::Void:
case ParamTypeId::Integer:
case ParamTypeId::Real:
case ParamTypeId::Complex:
// keep original type for void and non-vector
return r;
fTy = r;
break;
case ParamTypeId::IntegerVector:
case ParamTypeId::UnsignedVector:
case ParamTypeId::RealVector:
// convert to FIR vector type
return fir::VectorType::get(getVecLen(r), r);
fTy = fir::VectorType::get(getVecLen(r), r);
break;
}
return fTy;
}

// Generic function type generator that supports most of the function types
Expand Down

1 comment on commit d45b1b6

@psteinfeld
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This works for me.

Please sign in to comment.