From: Mike Stump Date: Fri, 29 May 2009 19:14:13 +0000 (+0000) Subject: Oops, the testcase I was thinking of is supposed to error out. I X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9bb1b8e4e6d46ce6c9691dc72757f2a8f71b57b;p=clang Oops, the testcase I was thinking of is supposed to error out. I tried other things that might trip, but they all worked. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72584 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 38a981ccff..04661fca47 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -487,8 +487,6 @@ llvm::Value *CodeGenFunction::EmitVLASize(QualType Ty) } return SizeEntry; - } else if (const ConstantArrayType *CAT = dyn_cast(Ty)) { - EmitVLASize(CAT->getElementType()); } else if (const PointerType *PT = Ty->getAsPointerType()) EmitVLASize(PT->getPointeeType()); else {