[clang] [clang][Frontend] Batch LangOptions context hashing (PR #203162)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 6 07:06:49 PDT 2026


================
@@ -5215,15 +5215,22 @@ std::string CompilerInvocation::computeContextHash() const {
   HBuilder.add(serialization::VERSION_MAJOR, serialization::VERSION_MINOR);
 
   // Extend the signature with the language options
-  // FIXME: Replace with C++20 `using enum LangOptions::CompatibilityKind`.
-  using CK = LangOptions::CompatibilityKind;
+  const unsigned LanguageOptionValues[] = {
----------------
erichkeane wrote:

Ah, yep, you're right.  Disregard, I'm OK with it anyway.  Was hoping to reduce the size a bit more as well by skipping intermediate storage, but obviously not possible.

https://github.com/llvm/llvm-project/pull/203162


More information about the cfe-commits mailing list