[flang-commits] [flang] [flang][cuda] Allow STOP in device context (PR #120625)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Thu Dec 19 12:32:42 PST 2024
Valentin Clement =?utf-8?b?KOODkOODrOODsw=?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/120625 at github.com>
================
@@ -350,6 +350,9 @@ template <bool IsCUFKernelDo> class DeviceContextChecker {
void Check(const parser::ActionStmt &stmt, const parser::CharBlock &source) {
common::visit(
common::visitors{
+ [&](const common::Indirection<parser::StopStmt> &) {
+ return;
+ },
----------------
clementval wrote:
```suggestion
[&](const common::Indirection<parser::StopStmt> &) { return; },
```
https://github.com/llvm/llvm-project/pull/120625
More information about the flang-commits
mailing list