Increase template backtrace limit in clang driver (#476)

This commit is contained in:
Jon Haslam 2024-02-05 15:58:24 +00:00 committed by GitHub
parent af7800e661
commit ecc01f5742
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -577,6 +577,7 @@ bool OICompiler::compile(const std::string& code,
if (config.features[Feature::GenJitDebug]) {
compInv->getCodeGenOpts().setDebugInfo(codegenoptions::FullDebugInfo);
}
compInv->getDiagnosticOpts().TemplateBacktraceLimit = 0;
CompilerInstance compInstance;
compInstance.setInvocation(compInv);