forked from OSchip/llvm-project
revert r171306, since we cannot compare APInts with different bitwidths
llvm-svn: 171308
This commit is contained in:
parent
69dcc7deec
commit
4b47f82ac2
|
@ -562,7 +562,7 @@ SizeOffsetType ObjectSizeOffsetVisitor::visitPHINode(PHINode &PHI) {
|
|||
SizeOffsetType ObjectSizeOffsetVisitor::visitSelectInst(SelectInst &I) {
|
||||
SizeOffsetType TrueSide = compute(I.getTrueValue());
|
||||
SizeOffsetType FalseSide = compute(I.getFalseValue());
|
||||
if (TrueSide == FalseSide)
|
||||
if (bothKnown(TrueSide) && bothKnown(FalseSide) && TrueSide == FalseSide)
|
||||
return TrueSide;
|
||||
return unknown();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue