diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-12-31 18:01:36 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-12-31 18:01:36 +0000 |
commit | 2e594fa85c809178ce598a9b4c3a3bf5e0e6a14e (patch) | |
tree | 5d091a32bb3742a7d371e7a46b468024d15cd31e /lib/Analysis | |
parent | 1ef05b1a2a8eb8b9f0f5b7b04df9856f43de5855 (diff) | |
download | external_llvm-2e594fa85c809178ce598a9b4c3a3bf5e0e6a14e.zip external_llvm-2e594fa85c809178ce598a9b4c3a3bf5e0e6a14e.tar.gz external_llvm-2e594fa85c809178ce598a9b4c3a3bf5e0e6a14e.tar.bz2 |
revert r171306, since we cannot compare APInts with different bitwidths
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/MemoryBuiltins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/MemoryBuiltins.cpp b/lib/Analysis/MemoryBuiltins.cpp index dd05c29..a565617 100644 --- a/lib/Analysis/MemoryBuiltins.cpp +++ b/lib/Analysis/MemoryBuiltins.cpp @@ -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(); } |