mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix "pointer is null" static analyzer warnings. NFCI.
Assert that the pointers are non-null before dereferencing them.
This commit is contained in:
parent
c49fea4a89
commit
880b9aa4ad
@ -282,6 +282,7 @@ bool HexagonEarlyIfConversion::matchFlowPattern(MachineBasicBlock *B,
|
||||
// can fall through into the other, in other words, it will be executed
|
||||
// in both cases. We only want to predicate the block that is executed
|
||||
// conditionally.
|
||||
assert(TB && FB && "Failed to find triangle control flow blocks");
|
||||
unsigned TNP = TB->pred_size(), FNP = FB->pred_size();
|
||||
unsigned TNS = TB->succ_size(), FNS = FB->succ_size();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user