forked from OSchip/llvm-project
Fixup codegen for composition of vla types using a normal array type.
llvm-svn: 72578
This commit is contained in:
parent
0b0ddb21fe
commit
7f12d51a48
|
@ -487,6 +487,8 @@ llvm::Value *CodeGenFunction::EmitVLASize(QualType Ty)
|
||||||
}
|
}
|
||||||
|
|
||||||
return SizeEntry;
|
return SizeEntry;
|
||||||
|
} else if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(Ty)) {
|
||||||
|
EmitVLASize(CAT->getElementType());
|
||||||
} else if (const PointerType *PT = Ty->getAsPointerType())
|
} else if (const PointerType *PT = Ty->getAsPointerType())
|
||||||
EmitVLASize(PT->getPointeeType());
|
EmitVLASize(PT->getPointeeType());
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue