diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-23 15:30:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-23 15:30:06 +0000 |
commit | 949a3628024248db01d5b13e03c415e0c88e90e4 (patch) | |
tree | 20016aa1bfe0b2a217ac5c604879bee62f0321ea /lib/Target/TargetData.cpp | |
parent | c07736a397012499e337c994f7f952b07c709544 (diff) |
Remove redundant const qualifiers from cast<> expressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 8aa1851a18..e86e51f542 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -69,10 +69,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); + 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); } //===----------------------------------------------------------------------===// |