commit | cfae1e0200b1aac59453d1b2ab976f8fda8f57f0 | [log] [tgz] |
---|---|---|
author | Simon Pilgrim <llvm-dev@redking.me.uk> | Tue Apr 06 12:04:01 2021 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Apr 12 11:05:25 2021 -0700 |
tree | 1da2e0d75a88c21b275773d953b29bb932d21881 | |
parent | b21d08b74050ce39d9d896d26da9ed49b6158424 [diff] |
Don't directly dereference getAs<> casts to avoid potential null dereferences. NFCI. Replace with castAs<> which asserts the cast is valid. Fixes a number of static analyzer warnings. GitOrigin-RevId: 2901dc7575873ed4bdfa1d7a0e79020e7a9ffb3d