]> granicus.if.org Git - clang/commitdiff
Oops, the testcase I was thinking of is supposed to error out. I
authorMike Stump <mrs@apple.com>
Fri, 29 May 2009 19:14:13 +0000 (19:14 +0000)
committerMike Stump <mrs@apple.com>
Fri, 29 May 2009 19:14:13 +0000 (19:14 +0000)
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

index 38a981ccff16f58818de396d0da4c4df2948d4f4..04661fca471c96cb462aa6c0417bc9822a5bc6b6 100644 (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 {