Skip to content

CFGWalker with Single-thread failed #6557

Description

@XMadrid

When use CFGWalker to walk module with single thread, get a double-free fault.

I found we introduced two varaible: BasicBlock* exit = nullptr; and bool hasSyntheticExit = false; in src/cfg/cfg-traversal.h. And did not reset them in doWalkFunction.
In this case, the two variables from the previous function will still be used when we walk the subsequent function.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions