Oops, the testcase I was thinking of is supposed to error out. I

tried other things that might trip, but they all worked.

llvm-svn: 72584
This commit is contained in:
Mike Stump
2009-05-29 19:14:13 +00:00
parent 20da71e3b6
commit a678874975

View File

@@ -487,8 +487,6 @@ 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 {