]> granicus.if.org Git - llvm/commit
[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)
commita23f5a25c0a12a84a0133c2d9499ff01f52cea5b
tree0b727dbeeb1c08f1e788071a380a6feedd84fb1e
parent0d8da9eb22055e02bf8543112eb6c5e5d93c16cf
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368048 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp