Don't dereference from a dyn_cast<>. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 14 Sep 2020 12:04:44 +0000 (13:04 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 14 Sep 2020 12:05:17 +0000 (13:05 +0100)
commit7109fc9e42e6b9a56497dcc6a25228d818af4f38
treecc388364165e054e7244ed5a01eaacc1534f81b3
parent7448e64a790bfed10a04a550c14b91429cda07e0
Don't dereference from a dyn_cast<>. NFCI.

Use cast<> instead which will assert if it fails and not just return null.

Fixes clang static analyzer warning.
llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp