[cfe-commits] r104916 - /cfe/trunk/lib/CodeGen/CGDecl.cpp
Dan Gohman
gohman at apple.com
Thu May 27 18:39:35 PDT 2010
Author: djg
Date: Thu May 27 20:39:35 2010
New Revision: 104916
URL: http://llvm.org/viewvc/llvm-project?rev=104916&view=rev
Log:
This cast is no longer required.
Modified:
cfe/trunk/lib/CodeGen/CGDecl.cpp
Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDecl.cpp?rev=104916&r1=104915&r2=104916&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Thu May 27 20:39:35 2010
@@ -505,10 +505,6 @@
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");
More information about the cfe-commits
mailing list