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 | 6200f0c533e8541d821d2cad3ede28c700cf788f (patch) | |
tree | 0034776ec56531777ce24b30654af562735f1d07 /clang/lib/CodeGen/CGDecl.cpp | |
parent | 7acf0749d45584f0984e174c763505920faebcf9 (diff) | |
download | bcm5719-llvm-6200f0c533e8541d821d2cad3ede28c700cf788f.tar.gz bcm5719-llvm-6200f0c533e8541d821d2cad3ede28c700cf788f.zip |
Add some ErrorUnsupported calls and turn on VLA codegen again.
llvm-svn: 61283
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 1c72ba12280..62684bae496 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/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); |