[clang] fix: replace report_fatal_error with Diags and exit (PR #147959)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 22 01:56:29 PDT 2025
================
@@ -1697,6 +1698,15 @@ ASTContext::getRelocationInfoForCXXRecord(const CXXRecordDecl *RD) const {
return std::nullopt;
}
+void ASTContext::initSanitizers(const LangOptions &LangOpts,
+ SourceManager &SM) {
+ std::string Error;
+ if (!NoSanitizeL->init(LangOpts.NoSanitizeFiles, Error)) {
+ const std::string &Path = LangOpts.NoSanitizeFiles.front();
----------------
woruyu wrote:
There are two kind of error for NoSanitizeL. The first is `can't open file`, the second is `error parsing file`, so I think using CustomDiagID is better!
https://github.com/llvm/llvm-project/pull/147959
More information about the cfe-commits
mailing list