Skip to content

Commit 303aa1b

Browse files
author
Gabor Horvath
committed
[cxx-interop] Avoid creating duplicate unsafe attributes
1 parent 95dca81 commit 303aa1b

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
@@ -4124,6 +4124,7 @@ namespace {
41244124
// annotated nor is it marked noescape.
41254125
auto attr = new (ASTContext) UnsafeAttr(/*implicit=*/true);
41264126
result->getAttrs().add(attr);
4127+
break;
41274128
}
41284129
}
41294130
Impl.diagnoseTargetDirectly(decl);

0 commit comments

Comments
 (0)