]> granicus.if.org Git - llvm/commit
[TableGen] CodeGenMapTable - Don't dereference a dyn_cast result. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 17 Sep 2019 17:32:15 +0000 (17:32 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 17 Sep 2019 17:32:15 +0000 (17:32 +0000)
commit8880d6274d8b12252d0c5a163255c7e722ed3ce3
treef41456d33fa860fa7c1ea3d4816c10441e876cb8
parent34ac6f6912d9c03b3402d5cd3e774b356a5f297c
[TableGen] CodeGenMapTable - Don't dereference a dyn_cast result. NFCI.

The static analyzer is warning about potential null dereferences of dyn_cast<> results - in these cases we can safely use cast<> directly as we know that these cases should all be the correct type, which is why its working atm and anyway cast<> will assert if they aren't.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372146 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/CodeGenMapTable.cpp