[XCOFF][MC] report_fatal_error before dereferencing NULL
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Tue, 6 Aug 2019 15:05:20 +0000 (15:05 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Tue, 6 Aug 2019 15:05:20 +0000 (15:05 +0000)
commitfc34a536d04a6941c0783098e71f10b1f616120d
treed45b1d77d96d6b96d10e38865511c205b0fa9c37
parentc92b951567f286277cc1bae3ba1221e742e1a215
[XCOFF][MC] report_fatal_error before dereferencing NULL

This patch replaces a TODO comment with a call to `report_fatal_error`.
The path that reaches the added call to `report_fatal_error` manifestly
dereferences a null pointer.

llvm-svn: 368048
llvm/lib/MC/MCParser/AsmParser.cpp