]> granicus.if.org Git - llvm/commit
[Hexagon] Don't dereference dyn_cast<ConstantFPSDNode> result. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 22 Sep 2019 12:38:21 +0000 (12:38 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 22 Sep 2019 12:38:21 +0000 (12:38 +0000)
commitf82198cb7dd2c461d67e1531a7cd378faaaa04a8
treefef5d9d2a9c2e4ae236a462e21cc5f6c9da01471
parent0a8c54aac9adb64e63b4965f76f432a491210216
[Hexagon] Don't dereference dyn_cast<ConstantFPSDNode> result. NFCI.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372499 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp