mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Remove redundant utility method and rename another one
This commit is contained in:
@@ -394,7 +394,7 @@ emitErrorIsNonNilErrorCheck(SILGenFunction &SGF, SILLocation loc,
|
||||
|
||||
// Switch on the optional error.
|
||||
SILBasicBlock *errorBB = SGF.createBasicBlock(FunctionSection::Postmatter);
|
||||
errorBB->createPHIArgument(optionalError->getType().unwrapAnyOptionalType(),
|
||||
errorBB->createPHIArgument(optionalError->getType().unwrapOptionalType(),
|
||||
ValueOwnershipKind::Owned);
|
||||
SILBasicBlock *contBB = SGF.createBasicBlock();
|
||||
SGF.B.createSwitchEnum(loc, optionalError, /*default*/ nullptr,
|
||||
|
||||
Reference in New Issue
Block a user