mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Add more support for new style casts
Convert more code to use them git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user