Merge pull request #1181 from KhronosGroup/cfg-immediate-dominators

CFG: Compute actual immediate dominators.
This commit is contained in:
Hans-Kristian Arntzen 2019-10-21 13:46:09 +02:00 committed by GitHub
commit ff1897ae0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ void CFG::build_immediate_dominators()
if (immediate_dominators[block])
{
assert(immediate_dominators[edge]);
immediate_dominators[block] = find_common_dominator(block, edge);
immediate_dominators[block] = find_common_dominator(immediate_dominators[block], edge);
}
else
immediate_dominators[block] = edge;