================
@@ -36,7 +36,7 @@ enum class Group;
 enum {
   DIAG_SIZE_COMMON = 300,
   DIAG_SIZE_DRIVER = 400,
-  DIAG_SIZE_FRONTEND = 200,
+  DIAG_SIZE_FRONTEND = 300,
----------------
tonykuttai wrote:

We added four new frontend diagnostics. Thus at this point we have 199 frontend 
diagnostics and that bumped the `FRONTEND_DIAGNOSTICS` to 899. I was getting 
the following error:
```
error: static assertion failed due to requirement 'static_cast<unsigned 
int>(diag::NUM_BUILTIN_FRONTEND_DIAGNOSTICS) < static_cast<unsigned 
int>(diag::DIAG_START_FRONTEND) + static_cast<unsigned 
int>(diag::DIAG_SIZE_FRONTEND)': DIAG_SIZE_FRONTEND is insufficient to contain 
all diagnostics, it may need to be made larger in DiagnosticIDs.h.
```

`VALIDATE_DIAG_SIZE(FRONTEND)` at `[DiagnosticIDs.cpp:175]` requires the 
sentinel to stay strictly below `DIAG_START_FRONTEND + DIAG_SIZE_FRONTEND = 
900`, i.e. below the start of the `SERIALIZATION` block. As the `FRONTEND` 
block is completely full we need to bump up `DIAG_SIZE_FRONTEND`. 

Similar to [[clang][NFC] Bump the maximum number of Sema 
diagnostics](https://github.com/llvm/llvm-project/pull/200948#top)

https://github.com/llvm/llvm-project/pull/187986
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to