Skip to content

Commit

Permalink
Fix GC assertion on array of derived pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Oct 23, 2022
1 parent 7680f77 commit 21a2dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm-late-gc-lowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ unsigned getCompositeNumElements(Type *T) {
// Walk through a Type, and record the element path to every tracked value inside
void TrackCompositeType(Type *T, std::vector<unsigned> &Idxs, std::vector<std::vector<unsigned>> &Numberings) {
if (isa<PointerType>(T)) {
if (T->getPointerAddressSpace() == AddressSpace::Tracked)
if (isSpecialPtr(T))
Numberings.push_back(Idxs);
}
else if (isa<StructType>(T) || isa<ArrayType>(T) || isa<VectorType>(T)) {
Expand Down

0 comments on commit 21a2dc3

Please sign in to comment.