[clang] [llvm] [RFC][BPF] Do atomic_fetch_*() pattern matching with memory ordering (PR #107343)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 9 18:22:01 PDT 2024
================
@@ -1444,8 +1454,15 @@ void BTFDebug::processGlobals(bool ProcessingMapDef) {
DIGlobal = GVE->getVariable();
if (SecName.starts_with(".maps"))
visitMapDefType(DIGlobal->getType(), GVTypeId);
- else
- visitTypeEntry(DIGlobal->getType(), GVTypeId, false, false);
+ else {
+ const DIType *Ty = DIGlobal->getType();
+ if (Ty) {
----------------
eddyz87 wrote:
Silly question, when can `Ty` be null?
https://github.com/llvm/llvm-project/pull/107343
More information about the cfe-commits
mailing list