[clang] Fix/interp init list unnamed bitfields (PR #87799)

via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 6 08:44:42 PDT 2024


================
@@ -884,8 +884,36 @@ bool ByteCodeExprGen<Emitter>::visitInitList(ArrayRef<const Expr *> Inits,
     if (!this->emitDupPtr(E))
       return false;
 
+    // guard relatively expensive base check behind an almost-always-false
----------------
sethp wrote:

Maybe half so? It's an attempt to avoid a performance regression that I think I would've otherwise introduced by making this change.

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


More information about the cfe-commits mailing list