[PATCH] D82041: [BPF] fix a bug for BTF pointee type pruning
Andrii Nakryiko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 17 12:56:27 PDT 2020
anakryiko added inline comments.
Herald added a subscriber: ormris.
================
Comment at: llvm/lib/Target/BPF/BTFDebug.cpp:606
bool CheckPointer, bool SeenPointer) {
if (!Ty || DIToIdMap.find(Ty) != DIToIdMap.end()) {
TypeId = DIToIdMap[Ty];
----------------
if it is the `!Ty` case, would it crash immediately one line below? Was it supposed to be `if (Ty && DIToIdMap.find(Ty) != DIToIdMap.end())`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82041/new/
https://reviews.llvm.org/D82041
More information about the llvm-commits
mailing list