XCOFFObjectWriter - silence static analyzer dyn_cast<> null dereference warning....
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 14 Oct 2019 16:46:11 +0000 (16:46 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 14 Oct 2019 16:46:11 +0000 (16:46 +0000)
commitef0cb271807df7c261a78dabedfec60046cf7969
tree0b3b13d6a3a5aed1eaeb7ee18a21bcf928b4facc
parent0e100037d7e3b481b45ebeb8b8a39ec0d175699e
XCOFFObjectWriter - silence static analyzer dyn_cast<> null dereference warning. NFCI.

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

llvm-svn: 374788
llvm/lib/MC/XCOFFObjectWriter.cpp