[PATCH] D147706: [TableGen] Fix null pointer dereferences in TreePattern::ParseTreePattern()

Alexey Vishnyakov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 8 00:44:45 PDT 2023


SweetVishnya added a comment.

In D147706#4252375 <https://reviews.llvm.org/D147706#4252375>, @arsenm wrote:

> LGTM. Tests would be nice

These bugs were found by a static analyzer based on the fact that null pointer is checked right before dereference. I don't really know how to hand-craft test cases for these errors.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147706/new/

https://reviews.llvm.org/D147706



More information about the llvm-commits mailing list