Skip to content

Commit 302f463

Browse files
committed
Un-comment-out code using API change from clang
This will compile now that the automerger from llvm succeeded.
1 parent 96d7fbb commit 302f463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,8 +821,8 @@ bool ClangImporter::canReadPCH(StringRef PCHFilename) {
821821
&Impl.Instance->getModuleCache());
822822
auto invocation =
823823
std::make_shared<clang::CompilerInvocation>(*Impl.Invocation);
824-
// invocation->getPreprocessorOpts().DisablePCHOrModuleValidation =
825-
// clang::DisableValidationForModuleKind::None;
824+
invocation->getPreprocessorOpts().DisablePCHOrModuleValidation =
825+
clang::DisableValidationForModuleKind::None;
826826
invocation->getPreprocessorOpts().AllowPCHWithCompilerErrors = false;
827827
invocation->getHeaderSearchOpts().ModulesValidateSystemHeaders = true;
828828
invocation->getLangOpts()->NeededByPCHOrCompilationUsesPCH = true;

0 commit comments

Comments
 (0)