From 9d3dd8efe07180a6b261ae617ffc1ee5e26419c9 Mon Sep 17 00:00:00 2001 From: woruyu <99597449+woruyu@users.noreply.github.com> Date: Fri, 25 Jul 2025 22:20:30 +0800 Subject: fix: replace report_fatal_error with Diags and exit (#147959) report_fatal_error is not a good way to report diagnostics to the users, so this switches to using actual diagnostic reporting mechanisms instead. Fixes #147187 --- clang/lib/Frontend/CompilerInstance.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Frontend/CompilerInstance.cpp') diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index c7b82db..bbb856b 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -554,6 +554,7 @@ void CompilerInstance::createASTContext() { PP.getBuiltinInfo(), PP.TUKind); Context->InitBuiltinTypes(getTarget(), getAuxTarget()); setASTContext(Context); + Context->initSanitizers(getLangOpts(), PP.getSourceManager()); } // ExternalASTSource -- cgit v1.1