tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

downgrade-mangling-error_clang_12.patch (1105B)


      1 Downgrade unimplemented mangling diagnostic from error to note.
      2 This codepath is exercised by MozsearchIndexer.cpp (the searchfox
      3 indexer) when indexing on Windows. We can do without having the
      4 unimplemented bits for now as long the compiler doesn't fail the
      5 build. See also https://bugs.llvm.org/show_bug.cgi?id=39294
      6 
      7 diff --git a/clang/lib/AST/ItaniumMangle.cpp b/clang/lib/AST/ItaniumMangle.cpp
      8 index 4420f6a2c1c3..4d9a6434d245 100644
      9 --- a/clang/lib/AST/ItaniumMangle.cpp
     10 +++ b/clang/lib/AST/ItaniumMangle.cpp
     11 @@ -4028,10 +4028,11 @@ recurse:
     12     if (!NullOut) {
     13       // As bad as this diagnostic is, it's better than crashing.
     14       DiagnosticsEngine &Diags = Context.getDiags();
     15 -      unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error,
     16 +      unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Remark,
     17                                        "cannot yet mangle expression type %0");
     18       Diags.Report(E->getExprLoc(), DiagID)
     19         << E->getStmtClassName() << E->getSourceRange();
     20 +      Out << "MOZ_WE_HACKED_AROUND_BUG_1418415";
     21       return;
     22     }
     23     break;