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 | f666b7780d04186521adcaedb0e15dfa4d5e6933 (patch) | |
tree | 9d9e6b9810fa955c54d37138ca5c9956d16a03d2 /lib/CodeGen/CGDecl.cpp | |
parent | eb91f0ecb420f481811f8812ac4d39087e8dd754 (diff) |
Split up emitting of VLA sizes and getting the size of a VLA.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 62684bae49..7f4e34d0f9 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/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"); |