mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename SILCloner doPostProcess and foldValue to recordClonedInstruction and recordFoldedValue.
This commit is contained in:
@@ -643,7 +643,7 @@ void ClosureCloner::visitLoadBorrowInst(LoadBorrowInst *LI) {
|
||||
// We assume that the value is already guaranteed.
|
||||
assert(Val.getOwnershipKind().isTrivialOr(ValueOwnershipKind::Guaranteed) &&
|
||||
"Expected argument value to be guaranteed");
|
||||
foldValue(LI, Val);
|
||||
recordFoldedValue(LI, Val);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -668,7 +668,7 @@ void ClosureCloner::visitLoadInst(LoadInst *LI) {
|
||||
&& LI->getOwnershipQualifier() == LoadOwnershipQualifier::Copy) {
|
||||
Val = getBuilder().createCopyValue(LI->getLoc(), Val);
|
||||
}
|
||||
foldValue(LI, Val);
|
||||
recordFoldedValue(LI, Val);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -694,7 +694,7 @@ void ClosureCloner::visitLoadInst(LoadInst *LI) {
|
||||
&& LI->getOwnershipQualifier() == LoadOwnershipQualifier::Copy) {
|
||||
Val = getBuilder().createCopyValue(LI->getLoc(), Val);
|
||||
}
|
||||
foldValue(LI, Val);
|
||||
recordFoldedValue(LI, Val);
|
||||
return;
|
||||
}
|
||||
SILCloner<ClosureCloner>::visitLoadInst(LI);
|
||||
|
||||
Reference in New Issue
Block a user