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

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 5 20:56:35 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
----------------
tbaederr wrote:

The comment sounds like this is just a performance improvement. Is that so?

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


More information about the cfe-commits mailing list