[ARM][AsmParser] Don't dereference a dyn_cast result. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 17 Sep 2019 17:26:14 +0000 (17:26 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 17 Sep 2019 17:26:14 +0000 (17:26 +0000)
commita9a27d1ded79dd7772f2165f7939510cd8083787
tree184a8a5c5602a3a701ef6c143942c6567e218726
parent08a448fcbd4eda19be77919f52a7b177fe9bbbc6
[ARM][AsmParser] 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: 372145
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp