diff options
author | woruyu <99597449+woruyu@users.noreply.github.com> | 2025-07-25 22:20:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-25 10:20:30 -0400 |
commit | 9d3dd8efe07180a6b261ae617ffc1ee5e26419c9 (patch) | |
tree | c392f3f8f1c182527a433bd4ff2027debf454f79 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | c1545b68bcba16c3d21fd3d0ee3bc4c92aa8d98f (diff) | |
download | llvm-9d3dd8efe07180a6b261ae617ffc1ee5e26419c9.zip llvm-9d3dd8efe07180a6b261ae617ffc1ee5e26419c9.tar.gz llvm-9d3dd8efe07180a6b261ae617ffc1ee5e26419c9.tar.bz2 |
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 |