summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-25 20:22:29 +0000
committerDan Gohman <gohman@apple.com>2010-10-25 20:22:29 +0000
commite6715d07551d565fc4df8a8e44281da5279ce8c7 (patch)
treeb8685a6c66b57a59936da232af31848b94a76e72 /llvm/lib
parentc07d8353e1f3587b70819139f732a06df78c8a20 (diff)
downloadbcm5719-llvm-e6715d07551d565fc4df8a8e44281da5279ce8c7.tar.gz
bcm5719-llvm-e6715d07551d565fc4df8a8e44281da5279ce8c7.zip
Only read one bit for testing for a readonly type, leaving the other
bits open for future uses. llvm-svn: 117301
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp b/llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp
index 9e8f503e4fd..f2fe35db33f 100644
--- a/llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp
+++ b/llvm/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];
}
};
}
OpenPOWER on IntegriCloud