projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b1e0f76
)
Only read one bit for testing for a readonly type, leaving the other
author
Dan Gohman
<gohman@apple.com>
Mon, 25 Oct 2010 20:22:29 +0000
(20:22 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 25 Oct 2010 20:22:29 +0000
(20:22 +0000)
bits open for future uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117301
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/TypeBasedAliasAnalysis.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/TypeBasedAliasAnalysis.cpp
b/lib/Analysis/TypeBasedAliasAnalysis.cpp
index 9e8f503e4fd268a60f3939c8c7adccd24a2e93fb..f2fe35db33f0ffacd8257b8a19be00da98c56450 100644
(file)
--- a/
lib/Analysis/TypeBasedAliasAnalysis.cpp
+++ b/
lib/Analysis/TypeBasedAliasAnalysis.cpp
@@
-102,8
+102,7
@@
namespace {
ConstantInt *CI = dyn_cast<ConstantInt>(Node->getOperand(2));
if (!CI)
return false;
- // TODO: Think about the encoding.
- return CI->isOne();
+ return CI->getValue()[0];
}
};
}