Skip to content

Commit cd16836

Browse files
author
Serguei Katkov
committed
[Safepoint Verifier] Add a missed comment to previous commit.
1 parent 57092d4 commit cd16836

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/IR/SafepointIRVerifier.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ static enum BaseType getBaseType(const Value *Val) {
358358
continue;
359359
}
360360
if (const auto *GCRelocate = dyn_cast<GCRelocateInst>(V)) {
361+
// GCRelocates do not change null-ness or constant-ness of the value.
362+
// So we can continue with derived pointer this instruction relocates.
361363
Worklist.push_back(GCRelocate->getDerivedPtr());
362364
continue;
363365
}

0 commit comments

Comments
 (0)