diff options
author | Anders Carlsson <andersca@mac.com> | 2008-12-20 19:33:21 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-12-20 19:33:21 +0000 |
commit | eb91f0ecb420f481811f8812ac4d39087e8dd754 (patch) | |
tree | e532b195289cdcf539c661e4a971fc06e1d6994e /lib/CodeGen/CGDecl.cpp | |
parent | adcaf544a9d863a4afb29cc5420095320fccafd8 (diff) |
Add some ErrorUnsupported calls and turn on VLA codegen again.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 1c72ba1228..62684bae49 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -160,15 +160,6 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) { D.getStorageClass() == VarDecl::Register ? ".reg." : ".auto."; DeclPtr = GenerateStaticBlockVarDecl(D, true, Class); } - } else if (1) { - // FIXME: The code below is disabled because is causes a regression in the - // testsuite. - CGM.ErrorUnsupported(&D, "variable-length array"); - - const llvm::Type *LTy = ConvertType(Ty); - llvm::AllocaInst *Alloc = - CreateTempAlloca(LTy, D.getIdentifier()->getName()); - DeclPtr = Alloc; } else { const VariableArrayType *VAT = getContext().getAsVariableArrayType(Ty); |