[Safepoint Verifier] Add a missed comment to previous commit.

This commit is contained in:
Serguei Katkov 2022-02-15 12:21:33 +07:00
parent 57092d4f4f
commit cd16836ce2
1 changed files with 2 additions and 0 deletions

View File

@ -358,6 +358,8 @@ static enum BaseType getBaseType(const Value *Val) {
continue;
}
if (const auto *GCRelocate = dyn_cast<GCRelocateInst>(V)) {
// GCRelocates do not change null-ness or constant-ness of the value.
// So we can continue with derived pointer this instruction relocates.
Worklist.push_back(GCRelocate->getDerivedPtr());
continue;
}