@@ -1001,6 +1001,7 @@ makeUnionFieldAccessors(ClangImporter::Implementation &Impl,
1001
1001
{ inoutSelf },
1002
1002
{ Identifier () });
1003
1003
selfPointer->setType (C.TheRawPointerType );
1004
+ selfPointer->setThrows (false );
1004
1005
1005
1006
auto initializeFn = cast<FuncDecl>(getBuiltinValueDecl (
1006
1007
C, C.getIdentifier (" initialize" )));
@@ -1018,6 +1019,7 @@ makeUnionFieldAccessors(ClangImporter::Implementation &Impl,
1018
1019
{ newValueRef, selfPointer },
1019
1020
{ Identifier (), Identifier () });
1020
1021
initialize->setType (TupleType::getEmpty (C));
1022
+ initialize->setThrows (false );
1021
1023
1022
1024
auto body = BraceStmt::create (C, SourceLoc (), { initialize }, SourceLoc (),
1023
1025
/* implicit*/ true );
@@ -5562,6 +5564,7 @@ Decl *SwiftDeclConverter::importEnumCaseAlias(
5562
5564
auto instantiate = new (Impl.SwiftContext )
5563
5565
DotSyntaxCallExpr (constantRef, SourceLoc (), typeRef);
5564
5566
instantiate->setType (importedEnumTy);
5567
+ instantiate->setThrows (false );
5565
5568
5566
5569
Decl *CD = Impl.createConstant (name, importIntoDC, importedEnumTy,
5567
5570
instantiate, ConstantConvertKind::None,
0 commit comments