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

Yonghong Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 16 15:28:39 PDT 2021


yonghong-song updated this revision to Diff 338252.
yonghong-song added a comment.

- isDefined() is not necessary, segfault is caused by a nullptr by causing a LV.getPointer(). Check nullptr instead.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100567

Files:
  clang/include/clang/Basic/TargetInfo.h
  clang/lib/Basic/Targets/BPF.h
  clang/lib/CodeGen/CGExpr.cpp
  clang/lib/Sema/SemaDecl.cpp
  clang/test/CodeGen/debug-info-extern-callback.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100567.338252.patch
Type: text/x-patch
Size: 3801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210416/42eec9d1/attachment-0001.bin>


More information about the cfe-commits mailing list