forked from OSchip/llvm-project
simple implementation of __builtin_alloca
llvm-svn: 46783
This commit is contained in:
parent
2352150043
commit
3399bb424c
|
@ -205,6 +205,10 @@ RValue CodeGenFunction::EmitBuiltinExpr(unsigned BuiltinID, const CallExpr *E) {
|
|||
return RValue::get(Builder.CreateZExt(LHS, ConvertType(E->getType()),
|
||||
"tmp"));
|
||||
}
|
||||
case Builtin::BI__builtin_alloca:
|
||||
return RValue::get(Builder.CreateAlloca(llvm::Type::Int8Ty,
|
||||
EmitScalarExpr(E->getArg(0)),
|
||||
"tmp"));
|
||||
}
|
||||
return RValue::get(0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue