Skip to content

Commit 22cc33a

Browse files
committed
[ClangImporter] Handle pair to actual struct change
Use `FeatureName` rather than `first`.
1 parent b429c70 commit 22cc33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7894,7 +7894,7 @@ bool importer::requiresCPlusPlus(const clang::Module *module) {
78947894
}
78957895

78967896
return llvm::any_of(module->Requirements, [](clang::Module::Requirement req) {
7897-
return req.first == "cplusplus";
7897+
return req.FeatureName == "cplusplus";
78987898
});
78997899
}
79007900

0 commit comments

Comments
 (0)