]> granicus.if.org Git - llvm/commit
[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)
commite5754e0c8557ae8c14ced065d240dd54a121e860
tree45b0c385cdd8476dbdd488db72ed6ba3dfc940d8
parentf82198cb7dd2c461d67e1531a7cd378faaaa04a8
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372500 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsSEISelDAGToDAG.cpp