[Sema] Use castAs<> instead getAs<> for dereferenced pointer casts. NFCI.
getAs<> returns null for missed casts, resulting in null dereferences - use castAs<> instead which will assert the cast is correct.
Loading
Please sign in to comment
getAs<> returns null for missed casts, resulting in null dereferences - use castAs<> instead which will assert the cast is correct.