[clang] [HLSL] Implement '__builtin_hlsl_is_intangible' type trait (PR #104544)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 26 11:10:27 PDT 2024


================
@@ -27,7 +29,7 @@
 
 using namespace clang;
 
-SemaHLSL::SemaHLSL(Sema &S) : SemaBase(S) {}
+SemaHLSL::SemaHLSL(Sema &S) : SemaBase(S), IsIntangibleTypeCache(8) {}
----------------
bogner wrote:

Why initialize the DenseMap with a specific number of buckets here? Why 8?

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


More information about the cfe-commits mailing list