[flang-commits] [flang] [flang][cuda] Allow if stmt in device subroutine (PR #89347)
via flang-commits
flang-commits at lists.llvm.org
Thu Apr 18 22:59:28 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 13beabe5e9d790ed6c1db10fb4774fa1330fbb2a 10485925155614848e69ba6050e4eeb332249849 -- flang/lib/Semantics/check-cuda.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Semantics/check-cuda.cpp b/flang/lib/Semantics/check-cuda.cpp
index 397fdc4919..a9e57de7e2 100644
--- a/flang/lib/Semantics/check-cuda.cpp
+++ b/flang/lib/Semantics/check-cuda.cpp
@@ -373,9 +373,10 @@ private:
}
}
void Check(const parser::IfStmt &is) {
- const auto &uS{std::get<parser::UnlabeledStatement<parser::ActionStmt>>(is.t)};
- CheckUnwrappedExpr(context_, uS.source,
- std::get<parser::ScalarLogicalExpr>(is.t));
+ const auto &uS{
+ std::get<parser::UnlabeledStatement<parser::ActionStmt>>(is.t)};
+ CheckUnwrappedExpr(
+ context_, uS.source, std::get<parser::ScalarLogicalExpr>(is.t));
Check(uS.statement, uS.source);
}
void Check(const parser::LoopControl::Bounds &bounds) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/89347
More information about the flang-commits
mailing list