Skip to content

[TE] Remove binding to temporary variable#13430

Merged
masahi merged 1 commit intoapache:mainfrom
Lunderberg:remove_binding_to_temporary
Nov 18, 2022
Merged

[TE] Remove binding to temporary variable#13430
masahi merged 1 commit intoapache:mainfrom
Lunderberg:remove_binding_to_temporary

Conversation

@Lunderberg
Copy link
Contributor

The call to analyzer->Simplify returns a PrimExpr object. Binding a const PrimExpr& to this temporary object results in a dangling reference.

The call to `analyzer->Simplify` returns a `PrimExpr` object.  Binding
a `const PrimExpr&` to this temporary object results in a dangling
reference.
@tvm-bot
Copy link
Collaborator

tvm-bot commented Nov 18, 2022

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • No users to tag found in teams: te See #10317 for details
  • Built docs for commit 8460abb can be found here.

Generated by tvm-bot

@masahi masahi merged commit 80f8e8b into apache:main Nov 18, 2022
@Lunderberg Lunderberg deleted the remove_binding_to_temporary branch November 18, 2022 21:41
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
The call to `analyzer->Simplify` returns a `PrimExpr` object.  Binding
a `const PrimExpr&` to this temporary object results in a dangling
reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants