Skip to content

Commit

Permalink
Managed pointers with non-zero offsets handled correctly in LLVMPolyg…
Browse files Browse the repository at this point in the history
…lotBoxedPredicate
  • Loading branch information
zslajchrt committed Aug 2, 2021
1 parent 153141d commit b2042a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ protected LLVMPolyglotBoxedPredicate(Predicate predicate) {
this.predicate = predicate;
}

@Specialization(guards = "!foreigns.isForeign(pointer.getObject())")
@Specialization(guards = "!foreigns.isForeign(pointer)")
boolean matchNonForeignManaged(@SuppressWarnings("unused") LLVMManagedPointer pointer,
@SuppressWarnings("unused") @CachedLibrary(limit = "3") LLVMAsForeignLibrary foreigns) {
return false;
}

@Specialization(guards = "foreigns.isForeign(pointer.getObject())")
@Specialization(guards = "foreigns.isForeign(pointer)")
@GenerateAOT.Exclude
boolean matchForeignManaged(LLVMManagedPointer pointer,
@CachedLibrary(limit = "3") LLVMAsForeignLibrary foreigns,
Expand Down

0 comments on commit b2042a4

Please sign in to comment.