From c9bb1b8e4e6d46ce6c9691dc72757f2a8f71b57b Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Fri, 29 May 2009 19:14:13 +0000 Subject: 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 --- lib/CodeGen/CodeGenFunction.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/CodeGen/CodeGenFunction.cpp') 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 { -- cgit v1.2.3-18-g5258