mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[CHR] Fixed null check after dereferencing warning. NFCI.
This commit is contained in:
parent
e805b61e95
commit
8b2b0c477f
@ -1061,6 +1061,7 @@ static bool shouldSplit(Instruction *InsertPoint,
|
||||
DenseSet<Value *> &ConditionValues,
|
||||
DominatorTree &DT,
|
||||
DenseSet<Instruction *> &Unhoistables) {
|
||||
assert(InsertPoint && "Null InsertPoint");
|
||||
CHR_DEBUG(
|
||||
dbgs() << "shouldSplit " << *InsertPoint << " PrevConditionValues ";
|
||||
for (Value *V : PrevConditionValues) {
|
||||
@ -1071,7 +1072,6 @@ static bool shouldSplit(Instruction *InsertPoint,
|
||||
dbgs() << *V << ", ";
|
||||
}
|
||||
dbgs() << "\n");
|
||||
assert(InsertPoint && "Null InsertPoint");
|
||||
// If any of Bases isn't hoistable to the hoist point, split.
|
||||
for (Value *V : ConditionValues) {
|
||||
DenseMap<Instruction *, bool> Visited;
|
||||
|
Loading…
Reference in New Issue
Block a user