From ecc01f57428348e36ff81afd4bd96691f1f6a8c4 Mon Sep 17 00:00:00 2001 From: Jon Haslam Date: Mon, 5 Feb 2024 15:58:24 +0000 Subject: [PATCH] Increase template backtrace limit in clang driver (#476) --- oi/OICompiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/oi/OICompiler.cpp b/oi/OICompiler.cpp index a11d684..aed0fcc 100644 --- a/oi/OICompiler.cpp +++ b/oi/OICompiler.cpp @@ -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);