Skip to content

Commit f6f7c56

Browse files
committed
stash
1 parent 08974e8 commit f6f7c56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,6 +1956,10 @@ namespace {
19561956
}
19571957

19581958
static bool hasOwnedValueAttr(const clang::RecordDecl *decl) {
1959+
if (decl->getNameAsString() == "basic_string" ||
1960+
decl->getNameAsString() == "vector")
1961+
return true;
1962+
19591963
return decl->hasAttrs() && llvm::any_of(decl->getAttrs(), [](auto *attr) {
19601964
if (auto swiftAttr = dyn_cast<clang::SwiftAttrAttr>(attr))
19611965
return swiftAttr->getAttribute() == "import_owned_value";

0 commit comments

Comments
 (0)