[PATCH] D100567: BPF: emit debuginfo for Function of DeclRefExpr if requested

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 18 11:17:25 PDT 2021


dblaikie added a comment.

In D100567#2696095 <https://reviews.llvm.org/D100567#2696095>, @yonghong-song wrote:

> Sorry, I know what is the segfault now after some debugging. It is because `auto *Fn = dyn_cast<llvm::Function>(LV.getPointer(*this));` is a NULL pointer after there is a definition before this.

Hmm, not sure I follow - is `LV.getPointer(*this)` returning null, or is the dyn_cast returning null because the thing isn't an llvm::Function? If it's not a function, what is it?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100567



More information about the cfe-commits mailing list