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