File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
flang/include/flang/Optimizer/Builder/Runtime Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ constexpr TypeBuilderFunc getModel<void **>() {
132
132
template <>
133
133
constexpr TypeBuilderFunc getModel<long >() {
134
134
return [](mlir::MLIRContext *context) -> mlir::Type {
135
- return mlir::IntegerType ::get (context, 8 * sizeof ( long ) );
135
+ return mlir::IndexType ::get (context);
136
136
};
137
137
}
138
138
template <>
@@ -173,7 +173,7 @@ constexpr TypeBuilderFunc getModel<long long *>() {
173
173
template <>
174
174
constexpr TypeBuilderFunc getModel<unsigned long >() {
175
175
return [](mlir::MLIRContext *context) -> mlir::Type {
176
- return mlir::IntegerType ::get (context, 8 * sizeof ( unsigned long ) );
176
+ return mlir::IndexType ::get (context);
177
177
};
178
178
}
179
179
template <>
You can’t perform that action at this time.
0 commit comments