diff options
Diffstat (limited to 'lib/Transforms/TransformInternals.h')
-rw-r--r-- | lib/Transforms/TransformInternals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/TransformInternals.h b/lib/Transforms/TransformInternals.h index d3ef47aad2..3131b8d367 100644 --- a/lib/Transforms/TransformInternals.h +++ b/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; } |