HomePhabricator

SemaExpr.cpp - use castAs<> instead of getAs<> as we dereference the pointer…

Authored by RKSimon on Nov 24 2020, 9:36 AM.

Description

SemaExpr.cpp - use castAs<> instead of getAs<> as we dereference the pointer directly. NFCI.

castAs<> will assert the correct cast type instead of just returning null, which we then try to dereference immediately.

Details