[MIPS] Don't dereference dyn_cast<> Constant results. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 22 Sep 2019 12:38:32 +0000 (12:38 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 22 Sep 2019 12:38:32 +0000 (12:38 +0000)
commiteb2941f10d06e7594a02c7b8749db3659ba13877
treea9bc96c259a0d22b8ddb6223f61de11bd9b54b4d
parent0b68a825ac1a3af837b9bec4dcaadbd3e15ec4ce
[MIPS] Don't dereference dyn_cast<> Constant results. NFCI.

The static analyzer is warning about potential null dereferences, but we should be able to use cast<> directly and if not assert will fire for us.

llvm-svn: 372500
llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp