[PATCH] D69751: [AsmWritter] Fixed "null check after dereferencing" warning

James Y Knight via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 07:04:05 PST 2019


jyknight added a comment.

Oops, it was my fault that I put an access before the check.

I think it'd be better to keep the ability to print it if for some reason there's no parent. It should never be required in normal circumstances, but this function can also be used while debugging, where that would be convenient.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69751





More information about the llvm-commits mailing list