[clang] counter var3 (PR #162291)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 7 16:13:41 PDT 2025


================
@@ -903,6 +938,73 @@ BuiltinTypeDeclBuilder &BuiltinTypeDeclBuilder::addCreateFromImplicitBinding() {
       .finalize();
 }
 
+BuiltinTypeDeclBuilder &
+BuiltinTypeDeclBuilder::addCreateFromBindingWithImplicitCounter() {
+  if (Record->isCompleteDefinition())
+    return *this;
----------------
hekota wrote:

```suggestion
  assert(!Record->isCompleteDefinition() && "record is already complete");
```
I've recently change these to asserts because the record should never be complete here.

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


More information about the cfe-commits mailing list