forked from OSchip/llvm-project
parent
dc835c4361
commit
614fb949b9
|
@ -642,7 +642,7 @@ static bool AllUsesOfValueWillTrapIfNull(Value *V,
|
||||||
return false;
|
return false;
|
||||||
} else if (isa<ICmpInst>(*UI) &&
|
} else if (isa<ICmpInst>(*UI) &&
|
||||||
isa<ConstantPointerNull>(UI->getOperand(1))) {
|
isa<ConstantPointerNull>(UI->getOperand(1))) {
|
||||||
// Ignore setcc X, null
|
// Ignore icmp X, null
|
||||||
} else {
|
} else {
|
||||||
//cerr << "NONTRAPPING USE: " << **UI;
|
//cerr << "NONTRAPPING USE: " << **UI;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue