[flang-commits] [flang] d45b1b6 - [flang] Fix flang-aarch64-latest-gcc build failure due to f295c88
Kelvin Li via flang-commits
flang-commits at lists.llvm.org
Mon Jun 26 15:08:02 PDT 2023
Author: Kelvin Li
Date: 2023-06-26T18:07:25-04:00
New Revision: d45b1b6bc6a358305b279938db717f61cb23fb0d
URL: https://github.com/llvm/llvm-project/commit/d45b1b6bc6a358305b279938db717f61cb23fb0d
DIFF: https://github.com/llvm/llvm-project/commit/d45b1b6bc6a358305b279938db717f61cb23fb0d.diff
LOG: [flang] Fix flang-aarch64-latest-gcc build failure due to f295c88
Insert a return statement
Added:
Modified:
flang/include/flang/Optimizer/Builder/IntrinsicCall.h
Removed:
################################################################################
diff --git a/flang/include/flang/Optimizer/Builder/IntrinsicCall.h b/flang/include/flang/Optimizer/Builder/IntrinsicCall.h
index 01df6d1f239d7..17abfef92fd26 100644
--- a/flang/include/flang/Optimizer/Builder/IntrinsicCall.h
+++ b/flang/include/flang/Optimizer/Builder/IntrinsicCall.h
@@ -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
More information about the flang-commits
mailing list