Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
3e859e67
Commit
3e859e67
authored
Apr 01, 2025
by
Yu Cheng
Committed by
LeiWang1999
Apr 01, 2025
Browse files
[Bugfix] Fixed the handling logic of IfThenElseNode in if_stmt_binding (#315)
parent
0fd82ed5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/transform/if_stmt_binding.cc
src/transform/if_stmt_binding.cc
+5
-2
No files found.
src/transform/if_stmt_binding.cc
View file @
3e859e67
...
@@ -29,8 +29,11 @@ private:
...
@@ -29,8 +29,11 @@ private:
Stmt
VisitStmt_
(
const
IfThenElseNode
*
op
)
final
{
Stmt
VisitStmt_
(
const
IfThenElseNode
*
op
)
final
{
auto
condition
=
op
->
condition
;
auto
condition
=
op
->
condition
;
auto
then_case
=
op
->
then_case
;
auto
then_case
=
VisitStmt
(
op
->
then_case
);
auto
else_case
=
op
->
else_case
;
Optional
<
Stmt
>
else_case
=
op
->
else_case
;
if
(
else_case
.
defined
())
{
else_case
=
VisitStmt
(
else_case
.
value
());
}
auto
bind_if_stmt
=
[](
Optional
<
Stmt
>
body
,
auto
bind_if_stmt
=
[](
Optional
<
Stmt
>
body
,
const
PrimExpr
condition
)
->
Stmt
{
const
PrimExpr
condition
)
->
Stmt
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment