summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-10-21 19:43:56 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-10-21 19:43:56 +0000
commit404c60a7c3dd3dc5f7cab8321f87361f76cf0328 (patch)
tree2b20a59c0f5020d12cfbd19dd7d7cb39f258d4b1 /llvm/lib/Analysis
parentfd10073aebbcc56fe93d4cc5a6f98c862503cbc7 (diff)
downloadbcm5719-llvm-404c60a7c3dd3dc5f7cab8321f87361f76cf0328.tar.gz
bcm5719-llvm-404c60a7c3dd3dc5f7cab8321f87361f76cf0328.zip
Use more type helper functions
llvm-svn: 193109
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index fa4324b50d7..0512429ad8a 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -3167,7 +3167,7 @@ const SCEV *ScalarEvolution::createNodeForGEP(GEPOperator *GEP) {
Type *IntPtrTy = getEffectiveSCEVType(GEP->getType());
Value *Base = GEP->getOperand(0);
// Don't attempt to analyze GEPs over unsized objects.
- if (!cast<PointerType>(Base->getType())->getElementType()->isSized())
+ if (!Base->getType()->getPointerElementType()->isSized())
return getUnknown(GEP);
// Don't blindly transfer the inbounds flag from the GEP instruction to the
OpenPOWER on IntegriCloud