Skip to content

Commit

Permalink
gen/dibuilder.cpp: adapt to API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
liushuyu committed Feb 21, 2025
1 parent 5857ed6 commit ed4d15b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gen/dibuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,11 @@ DISubroutineType DIBuilder::CreateFunctionType(Type *type,
if (pointeeType) {
DIType ditype = DBuilder.createReferenceType(
llvm::dwarf::DW_TAG_pointer_type, pointeeType, target.ptrsize * 8);
ditype = DBuilder.createObjectPointerType(ditype);
ditype = DBuilder.createObjectPointerType(ditype
#if LDC_LLVM_VER >= 2000
, /* Implicit */ true
#endif
);
params.emplace_back(ditype);
}
}
Expand Down

0 comments on commit ed4d15b

Please sign in to comment.