summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetData.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-01 18:26:53 +0000
committerChris Lattner <sabre@nondot.org>2001-10-01 18:26:53 +0000
commit8f191129239552b876f2c6717fae9619a7701a03 (patch)
tree7ecdf5b84fc94a779ad69fd6f665564d24258f2c /llvm/lib/Target/TargetData.cpp
parent4b717c0edc082166e85181fa70e76b17669aebe2 (diff)
downloadbcm5719-llvm-8f191129239552b876f2c6717fae9619a7701a03.tar.gz
bcm5719-llvm-8f191129239552b876f2c6717fae9619a7701a03.zip
Add more support for new style casts
Convert more code to use them llvm-svn: 695
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
-rw-r--r--llvm/lib/Target/TargetData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp
index e1415c73e87..24a5e852a21 100644
--- a/llvm/lib/Target/TargetData.cpp
+++ b/llvm/lib/Target/TargetData.cpp
@@ -61,7 +61,7 @@ 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 = ((const Value *)T)->castTypeAsserting();
+ const Type *Ty = cast<const Type>((const Value *)T);
assert(Ty->isStructType() &&
"Can only create StructLayout annotation on structs!");
return new StructLayout((const StructType *)Ty, TD);
OpenPOWER on IntegriCloud