[cfe-commits] r72578 - /cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
Mike Stump
mrs at apple.com
Fri May 29 10:06:45 PDT 2009
Author: mrs
Date: Fri May 29 12:06:45 2009
New Revision: 72578
URL: http://llvm.org/viewvc/llvm-project?rev=72578&view=rev
Log:
Fixup codegen for composition of vla types using a normal array type.
Modified:
cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.cpp?rev=72578&r1=72577&r2=72578&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Fri May 29 12:06:45 2009
@@ -487,6 +487,8 @@
}
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 {
More information about the cfe-commits
mailing list