Skip to content

Commit 218d6f0

Browse files
committed
[Clang importer] Mark call to Builtin.zeroInitializer as non-throwing.
Found while investigating SR-8079. (cherry picked from commit 64a8619)
1 parent dab0d8e commit 218d6f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,7 @@ createDefaultConstructor(ClangImporter::Implementation &Impl,
11881188

11891189
auto call = CallExpr::createImplicit(context, zeroInitializerRef, {}, {});
11901190
call->setType(selfType);
1191+
call->setThrows(false);
11911192

11921193
auto assign = new (context) AssignExpr(lhs, SourceLoc(), call,
11931194
/*implicit*/ true);

0 commit comments

Comments
 (0)