diff options
author | Anders Carlsson <andersca@mac.com> | 2008-12-20 20:27:15 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-12-20 20:27:15 +0000 |
commit | e388a5bf44aba581bc17a40235b630c6383ae931 (patch) | |
tree | ae05eb0d8a1d3e8459e89b7523643963e199e280 /clang/lib/CodeGen/CGDecl.cpp | |
parent | 6200f0c533e8541d821d2cad3ede28c700cf788f (diff) | |
download | bcm5719-llvm-e388a5bf44aba581bc17a40235b630c6383ae931.tar.gz bcm5719-llvm-e388a5bf44aba581bc17a40235b630c6383ae931.zip |
Split up emitting of VLA sizes and getting the size of a VLA.
llvm-svn: 61284
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |