diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-06 16:15:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-06 16:15:30 +0000 |
commit | 181cc32365ad2bba3a83905ff2c3fabb416d2438 (patch) | |
tree | 76f5de6e4556294e07cb115ebe1f035fb3bac9f7 /llvm/lib/Target/TargetData.cpp | |
parent | 398a86f14e7535eb9e12bc2caba8d91c04d74a75 (diff) | |
download | bcm5719-llvm-181cc32365ad2bba3a83905ff2c3fabb416d2438.tar.gz bcm5719-llvm-181cc32365ad2bba3a83905ff2c3fabb416d2438.zip |
Replace all usages of Type::isPointerType with isa<PointerType>
llvm-svn: 2486
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
-rw-r--r-- | llvm/lib/Target/TargetData.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp index 8479c6c8dbd..0df95209b55 100644 --- a/llvm/lib/Target/TargetData.cpp +++ b/llvm/lib/Target/TargetData.cpp @@ -61,10 +61,10 @@ Annotation *TargetData::TypeAnFactory(AnnotationID AID, const Annotable *T, void *D) { const TargetData &TD = *(const TargetData*)D; assert(AID == TD.AID && "Target data annotation ID mismatch!"); - const Type *Ty = cast<const Type>((const Value *)T); - assert(Ty->isStructType() && + const Type *Ty = cast<Type>((const Value *)T); + assert(isa<StructType>(Ty) && "Can only create StructLayout annotation on structs!"); - return new StructLayout((const StructType *)Ty, TD); + return new StructLayout(cast<StructType>(Ty), TD); } //===----------------------------------------------------------------------===// |