HexagonAsmParser::ParseDirectiveFalign - silence static analyzer dyn_cast<MCConstantE...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 10:35:19 +0000 (10:35 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 10:35:19 +0000 (10:35 +0000)
commit39e3b7062a2be938e8bbeb6fa0ab2d7a4efdd7a3
tree5a79cd0f2e81f0766b70de073d932ce81af1b239
parentfc82c7a1b01de7dbf79d9c9847942aba47a0e011
HexagonAsmParser::ParseDirectiveFalign - silence static analyzer dyn_cast<MCConstantExpr> null dereference warning. NFCI.

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

llvm-svn: 372956
llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp