Fix "pointer is null" static analyzer warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 9 Jan 2020 12:05:30 +0000 (12:05 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 9 Jan 2020 12:05:48 +0000 (12:05 +0000)
commite315ce2bd3a5347ab58d50fab2d449e8a4e60e00
treebf292620b603bf68cf26b18b8e0027029742ab07
parente3e72a2619ccec9654ef9ad45e1e926841fbaa58
Fix "pointer is null" static analyzer warnings. NFCI.

Use castAs<> instead of getAs<> since the pointer is dereferenced immediately below and castAs will perform the null assertion for us.
clang/lib/Sema/SemaCoroutine.cpp