[flang-commits] [flang] [flang][cuda] Update target rewrite to work on gpu.func (PR #119283)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Tue Dec 10 09:46:26 PST 2024
Valentin Clement =?utf-8?b?KOODkOODrOODsw=?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/119283 at github.com>
================
@@ -825,10 +838,10 @@ class TargetRewrite : public fir::impl::TargetRewritePassBase<TargetRewrite> {
rewriter->getUnitAttr()));
newResTys.push_back(retTy);
})
- .Case<fir::RecordType>([&](fir::RecordType recTy) {
+ .template Case<fir::RecordType>([&](fir::RecordType recTy) {
doStructReturn(func, recTy, newResTys, newInTyAndAttrs, fixups);
})
- .Default([&](mlir::Type ty) { newResTys.push_back(ty); });
+ .template Default([&](mlir::Type ty) { newResTys.push_back(ty); });
----------------
clementval wrote:
```suggestion
.Default([&](mlir::Type ty) { newResTys.push_back(ty); });
```
https://github.com/llvm/llvm-project/pull/119283
More information about the flang-commits
mailing list