[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)
commitc191c24314cb88597429a9c2047905fe6ee7e1ed
treea371c32dfe1693148d1abe9c9bae0e74029f2cb2
parenta9a27d1ded79dd7772f2165f7939510cd8083787
[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.

llvm-svn: 372146
llvm/utils/TableGen/CodeGenMapTable.cpp