SemaExpr.cpp - use castAs<> instead of getAs<> as we dereference the pointer directly...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 24 Nov 2020 17:36:58 +0000 (17:36 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 25 Nov 2020 11:38:30 +0000 (11:38 +0000)
commit88bb2656708050bdb012c9046b3e30f3975f9949
tree5da6963dfd8ae13dcddd9ac1a90fbb38d95eded1
parent9d996c01aad5371ccf3790ce937b1cc85d1b07ab
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.
clang/lib/Sema/SemaExpr.cpp