================
@@ -5069,14 +5069,30 @@ bool Compiler<Emitter>::visitAPValueInitializer(const
APValue &Val,
}
if (Val.isUnion()) {
const FieldDecl *UnionField = Val.getUnionField();
- const Record *R = this->getRecord(UnionField->getParent());
+ if (!UnionField)
+ // no active fields
----------------
tbaederr wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/179899
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits