summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-28 01:45:35 +0000
committerDan Gohman <gohman@apple.com>2010-05-28 01:45:35 +0000
commited0347333e3d74f8725b22fe5d18891e9dbf5b32 (patch)
tree184004dfc0104576fce9b71ea6591193d2d6f6dd /clang
parent4583186b8bfc138c0a7f108e2b44ebbd944a88eb (diff)
downloadbcm5719-llvm-ed0347333e3d74f8725b22fe5d18891e9dbf5b32.tar.gz
bcm5719-llvm-ed0347333e3d74f8725b22fe5d18891e9dbf5b32.zip
This cast is no longer needed; the FIXME is fixed.
llvm-svn: 104919
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 2b27bebe66e..d9ff2d8ac9b 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -398,9 +398,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD,
case Builtin::BIalloca:
case Builtin::BI__builtin_alloca: {
- // FIXME: LLVM IR Should allow alloca with an i64 size!
Value *Size = EmitScalarExpr(E->getArg(0));
- Size = Builder.CreateIntCast(Size, llvm::Type::getInt32Ty(VMContext), false, "tmp");
return RValue::get(Builder.CreateAlloca(llvm::Type::getInt8Ty(VMContext), Size, "tmp"));
}
case Builtin::BIbzero:
OpenPOWER on IntegriCloud