We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0a8cbc commit d3e5b56Copy full SHA for d3e5b56
flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
@@ -139,8 +139,9 @@ constexpr TypeBuilderFunc getModel<void *>() {
139
template <>
140
constexpr TypeBuilderFunc getModel<void (*)(int)>() {
141
return [](mlir::MLIRContext *context) -> mlir::Type {
142
- return fir::LLVMPointerType::get(context,
143
- mlir::IntegerType::get(context, 8));
+ return fir::LLVMPointerType::get(
+ context,
144
+ mlir::FunctionType::get(context, /*inputs=*/{}, /*results*/ {}));
145
};
146
}
147
0 commit comments