From e388a5bf44aba581bc17a40235b630c6383ae931 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 20 Dec 2008 20:27:15 +0000 Subject: Split up emitting of VLA sizes and getting the size of a VLA. llvm-svn: 61284 --- clang/lib/CodeGen/CGDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGDecl.cpp') diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 62684bae496..7f4e34d0f9a 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -180,7 +180,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) { const llvm::Type *LElemPtrTy = llvm::PointerType::get(LElemTy, D.getType().getAddressSpace()); - llvm::Value *VLASize = GetVLASize(VAT); + llvm::Value *VLASize = EmitVLASize(VAT); // Allocate memory for the array. llvm::Value *VLA = Builder.CreateAlloca(llvm::Type::Int8Ty, VLASize, "vla"); -- cgit v1.2.3