[cfe-commits] r72719 - /cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Eli Friedman
eli.friedman at gmail.com
Tue Jun 2 00:10:31 PDT 2009
Author: efriedma
Date: Tue Jun 2 02:10:30 2009
New Revision: 72719
URL: http://llvm.org/viewvc/llvm-project?rev=72719&view=rev
Log:
If we recognize alloca, treat it as a builtin. This fixes uses of
alloca without declaring it.
Modified:
cfe/trunk/lib/CodeGen/CGBuiltin.cpp
Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=72719&r1=72718&r2=72719&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Tue Jun 2 02:10:30 2009
@@ -268,6 +268,7 @@
return RValue::get(Builder.CreateZExt(LHS, ConvertType(E->getType()),
"tmp"));
}
+ case Builtin::BIalloca:
case Builtin::BI__builtin_alloca: {
// FIXME: LLVM IR Should allow alloca with an i64 size!
Value *Size = EmitScalarExpr(E->getArg(0));
More information about the cfe-commits
mailing list