Use cast<> instead of dyn_cast<> as we dereference the pointer immediately. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 30 Oct 2020 14:27:50 +0000 (14:27 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 30 Oct 2020 14:33:20 +0000 (14:33 +0000)
commit0ff1ab42f23d4efc043821ec447da5e553cd893e
treefa55ba8ecf7306ef14e84a4ca157b93a0e265a5d
parent5bf45ee1568e846291565ef6a16eca53e60b39ec
Use cast<> instead of dyn_cast<> as we dereference the pointer immediately. NFCI.

Fix clang static analyzer warning - we know that the arg should be ConstantInt and we're better off relying on cast<> asserting on failure rather than a null dereference crash.
llvm/lib/Target/AArch64/AArch64StackTagging.cpp