[IR] Remove an unnecessary cast (NFC) (#146250)
Agg is already of Type *.
This commit is contained in:
@@ -2582,7 +2582,7 @@ Type *ExtractValueInst::getIndexedType(Type *Agg,
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
return const_cast<Type*>(Agg);
|
||||
return Agg;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Reference in New Issue
Block a user