diff options
Diffstat (limited to 'devel/root/files/patch-interpreter_llvm-project_clang_lib_Serialization_ASTWriter.cpp')
-rw-r--r-- | devel/root/files/patch-interpreter_llvm-project_clang_lib_Serialization_ASTWriter.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/devel/root/files/patch-interpreter_llvm-project_clang_lib_Serialization_ASTWriter.cpp b/devel/root/files/patch-interpreter_llvm-project_clang_lib_Serialization_ASTWriter.cpp index 556a68a289ab..78e9d109f54b 100644 --- a/devel/root/files/patch-interpreter_llvm-project_clang_lib_Serialization_ASTWriter.cpp +++ b/devel/root/files/patch-interpreter_llvm-project_clang_lib_Serialization_ASTWriter.cpp @@ -1,13 +1,20 @@ ---- interpreter/llvm-project/clang/lib/Serialization/ASTWriter.cpp.orig 2024-01-11 19:51:52 UTC +--- interpreter/llvm-project/clang/lib/Serialization/ASTWriter.cpp.orig 2024-04-01 14:40:54 UTC +++ interpreter/llvm-project/clang/lib/Serialization/ASTWriter.cpp -@@ -2498,8 +2498,10 @@ unsigned ASTWriter::getSubmoduleID(Module *Mod) { +@@ -2498,8 +2498,15 @@ unsigned ASTWriter::getSubmoduleID(Module *Mod) { // did not result in us loading a module file for that submodule. For // instance, a cross-top-level-module 'conflict' declaration will hit this. unsigned ID = getLocalOrImportedSubmoduleID(Mod); +- assert((ID || !Mod) && +- "asked for module ID for non-local, non-imported module"); ++ + /* - assert((ID || !Mod) && - "asked for module ID for non-local, non-imported module"); ++ * FreeBSD port maintainer note: CMake option 'asserts' is enabled, when building ROOT with debug symbols. ++ * Building then fails on this one assertion. We hack out the assertion, building ++ * succeeds once again, and we pray that everything will be fine. + */ ++ ++ //assert((ID || !Mod) && ++ // "asked for module ID for non-local, non-imported module"); return ID; } |