summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-28 01:39:35 +0000
committerDan Gohman <gohman@apple.com>2010-05-28 01:39:35 +0000
commit3743b8cf49245d2da81bbf1bfc111651b82f825a (patch)
tree979e55179460fb4928fdaffcd14678af5f88127f /clang/lib/CodeGen
parent9da5bb07567df9a6e62cafde16897aba647fc084 (diff)
downloadbcm5719-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.cpp4
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");
OpenPOWER on IntegriCloud