Skip to content
Unverified Commit 5ce8cf78 authored by Steven Perron's avatar Steven Perron Committed by GitHub
Browse files

Change the order branches are simplified in dead branch elim (#2728)

Dead branch elimination needs to know about the constructs that a block is contained it when determining what to do with its merge instruction.  We currently fold branches in block as we see them, which is parent constructs before their children.  This causes the struct cfg analysis to crash because it tries to get the parent construct for a block after the parent has been folded.

This can be fixed by folding the branch of the children before the parents.

Fixes #2667.
parent cd153db8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment