diff options
| author | Dan Gohman <gohman@apple.com> | 2010-05-28 01:39:35 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-05-28 01:39:35 +0000 |
| commit | 3743b8cf49245d2da81bbf1bfc111651b82f825a (patch) | |
| tree | 979e55179460fb4928fdaffcd14678af5f88127f /clang/lib/CodeGen | |
| parent | 9da5bb07567df9a6e62cafde16897aba647fc084 (diff) | |
| download | bcm5719-llvm-3743b8cf49245d2da81bbf1bfc111651b82f825a.tar.gz bcm5719-llvm-3743b8cf49245d2da81bbf1bfc111651b82f825a.zip | |
This cast is no longer required.
llvm-svn: 104916
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 07edca0f5fe..a30d8cbd2ab 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -505,10 +505,6 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) { llvm::Value *VLASize = EmitVLASize(Ty); - // Downcast the VLA size expression - VLASize = Builder.CreateIntCast(VLASize, llvm::Type::getInt32Ty(VMContext), - false, "tmp"); - // Allocate memory for the array. llvm::AllocaInst *VLA = Builder.CreateAlloca(llvm::Type::getInt8Ty(VMContext), VLASize, "vla"); |

