[clang] [NFC] use appropriate castas (PR #95272)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 28 02:22:17 PDT 2024
================
@@ -2834,7 +2834,7 @@ ABIArgInfo
X86_64ABIInfo::classifyRegCallStructTypeImpl(QualType Ty, unsigned &NeededInt,
unsigned &NeededSSE,
unsigned &MaxVectorWidth) const {
- auto RT = Ty->getAs<RecordType>();
+ auto RT = Ty->castAs<RecordType>();
assert(RT && "classifyRegCallStructType only valid with struct types");
----------------
RKSimon wrote:
castAs has an internal assert so drop this one?
https://github.com/llvm/llvm-project/pull/95272
More information about the cfe-commits
mailing list