diff options
Diffstat (limited to 'llvm/lib/Transforms/TransformInternals.h')
-rw-r--r-- | llvm/lib/Transforms/TransformInternals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/TransformInternals.h b/llvm/lib/Transforms/TransformInternals.h index d3ef47aad28..3131b8d3675 100644 --- a/llvm/lib/Transforms/TransformInternals.h +++ b/llvm/lib/Transforms/TransformInternals.h @@ -43,7 +43,7 @@ static inline bool isFirstClassType(const Type *Ty) { // static inline const CompositeType *getPointedToComposite(const Type *Ty) { const PointerType *PT = dyn_cast<PointerType>(Ty); - return PT ? dyn_cast<CompositeType>(PT->getValueType()) : 0; + return PT ? dyn_cast<CompositeType>(PT->getElementType()) : 0; } |