[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)
commit0b68a825ac1a3af837b9bec4dcaadbd3e15ec4ce
treeca7be13682114d001eba25e895085eec1b2f06e8
parent665ccbff60ff35b750002e28e8ac85cbaf1821c7
[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.

llvm-svn: 372499
llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp