@@ -1414,7 +1414,7 @@ ClangImporter::create(ASTContext &ctx,
1414
1414
if (!swiftTargetClangInvocation)
1415
1415
return nullptr ;
1416
1416
auto targetInfo = clang::TargetInfo::CreateTargetInfo (
1417
- clangDiags, swiftTargetClangInvocation->TargetOpts );
1417
+ clangDiags, swiftTargetClangInvocation->getTargetOpts () );
1418
1418
// Ensure the target info has configured target-specific defines
1419
1419
std::string defineBuffer;
1420
1420
llvm::raw_string_ostream predefines (defineBuffer);
@@ -1426,7 +1426,7 @@ ClangImporter::create(ASTContext &ctx,
1426
1426
} else {
1427
1427
// Just use the existing Invocation's directly
1428
1428
importer->Impl .setSwiftTargetInfo (clang::TargetInfo::CreateTargetInfo (
1429
- clangDiags, importer->Impl .Invocation ->TargetOpts ));
1429
+ clangDiags, importer->Impl .Invocation ->getTargetOpts () ));
1430
1430
importer->Impl .setSwiftCodeGenOptions (
1431
1431
new clang::CodeGenOptions (importer->Impl .Invocation ->getCodeGenOpts ()));
1432
1432
}
@@ -1445,9 +1445,8 @@ ClangImporter::create(ASTContext &ctx,
1445
1445
// things here.
1446
1446
1447
1447
// Create the target instance.
1448
- instance.setTarget (
1449
- clang::TargetInfo::CreateTargetInfo (clangDiags,
1450
- instance.getInvocation ().TargetOpts ));
1448
+ instance.setTarget (clang::TargetInfo::CreateTargetInfo (
1449
+ clangDiags, instance.getInvocation ().getTargetOpts ()));
1451
1450
if (!instance.hasTarget ())
1452
1451
return nullptr ;
1453
1452
0 commit comments