Bug 1731304 [wpt PR 30802] - Update wpt metadata, a=testonly
[gecko.git] / build / build-clang / downgrade-mangling-error.patch
blob69f46f4dd0b3c01de106c3beeb0c5ad3a7dfd35c
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
7 diff --git a/clang/lib/AST/ItaniumMangle.cpp b/clang/lib/AST/ItaniumMangle.cpp
8 index 8b1419074df5..4436cd118f87 100644
9 --- a/clang/lib/AST/ItaniumMangle.cpp
10 +++ b/clang/lib/AST/ItaniumMangle.cpp
11 @@ -3847,10 +3847,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";
22 break;