HomePhabricator

[CFG] Fix a flaky crash in CFGBlock::getLastCondition().

Authored by dergachev.a on Nov 21 2019, 9:53 PM.

Description

[CFG] Fix a flaky crash in CFGBlock::getLastCondition().

Using an end iterator of an empty CFG block was causing
a garbage pointer dereference.

Differential Revision: https://reviews.llvm.org/D69962

Details

Committed
dergachev.aNov 21 2019, 9:55 PM
Differential Revision
D69962: [CFG] Fix a flaky crash in CFGBlock::getLastCondition().
Parents
rGc84c62c50aa8: [CMake] Fix LLVM build non-determinism on RHEL
Branches
Unknown
Tags
Unknown