[IR] Remove an unnecessary cast (NFC) (#146250)

Agg is already of Type *.
This commit is contained in:
Kazu Hirata
2025-06-28 20:41:24 -07:00
committed by GitHub
parent 0d0daef6ee
commit 8a4b6cd8d8

View File

@@ -2582,7 +2582,7 @@ Type *ExtractValueInst::getIndexedType(Type *Agg,
return nullptr;
}
}
return const_cast<Type*>(Agg);
return Agg;
}
//===----------------------------------------------------------------------===//