diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-10-21 19:43:56 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-10-21 19:43:56 +0000 |
commit | 244d24597497c09ab68969c8bbbdf2576130262c (patch) | |
tree | afd198678dafe53f36543e1053230ce25e383e8d /lib/Analysis | |
parent | 599c0afb244e61fed389ea0d4b5479fbc380dfbf (diff) | |
download | external_llvm-244d24597497c09ab68969c8bbbdf2576130262c.zip external_llvm-244d24597497c09ab68969c8bbbdf2576130262c.tar.gz external_llvm-244d24597497c09ab68969c8bbbdf2576130262c.tar.bz2 |
Use more type helper functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index fa4324b..0512429 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/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 |