forked from OSchip/llvm-project
parent
80fe907903
commit
5eae4adf23
|
@ -10759,7 +10759,7 @@ bool Sema::tryCaptureVariable(VarDecl *Var, SourceLocation Loc,
|
|||
}
|
||||
return true;
|
||||
}
|
||||
// Prohibit structs with flexiable array members too.
|
||||
// Prohibit structs with flexible array members too.
|
||||
// We cannot capture what is in the tail end of the struct.
|
||||
if (const RecordType *VTTy = Var->getType()->getAs<RecordType>()) {
|
||||
if (VTTy->getDecl()->hasFlexibleArrayMember() && IsBlock) {
|
||||
|
|
Loading…
Reference in New Issue