================
@@ -725,10 +725,8 @@ void CIRGenFunction::emitStaticVarDecl(const VarDecl &d,
// We can't have a VLA here, but we can have a pointer to a VLA,
// even though that doesn't really make any sense.
// Make sure to evaluate VLA bounds now so that we have them for later.
- if (d.getType()->isVariablyModifiedType()) {
- cgm.errorNYI(d.getSourceRange(),
- "emitStaticVarDecl: variably modified type");
- }
+ if (d.getType()->isVariablyModifiedType())
+ emitVariablyModifiedType(d.getType());
----------------
erichkeane wrote:
This doesn't have to 'return' here?
https://github.com/llvm/llvm-project/pull/214926
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits