SIL: Remove redundant utility method and rename another one

This commit is contained in:
Slava Pestov
2018-04-03 16:58:12 -07:00
parent d05577a5e3
commit 28d24f8f38
5 changed files with 7 additions and 24 deletions

View File

@@ -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,