Skip to content

Commit 569e66c

Browse files
committed
Fix TargetInfo::adjust call
Adjust now takes the diagnostic engine and the language options. Actually pass those in now too.
1 parent b1ea839 commit 569e66c

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
@@ -1170,7 +1170,7 @@ ClangImporter::create(ASTContext &ctx,
11701170
//
11711171
// FIXME: We shouldn't need to do this, the target should be immutable once
11721172
// created. This complexity should be lifted elsewhere.
1173-
instance.getTarget().adjust(instance.getLangOpts());
1173+
instance.getTarget().adjust(clangDiags, instance.getLangOpts());
11741174

11751175
if (importerOpts.Mode == ClangImporterOptions::Modes::EmbedBitcode)
11761176
return importer;

0 commit comments

Comments
 (0)