diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-11-13 22:58:53 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-11-13 22:58:53 +0000 |
commit | 59e4a6f5e2f7434ec6ec8bf334d211256105c897 (patch) | |
tree | 16829faf27501f774f9565c63f15bf8ba7ca5bef /clang/lib/CodeGen | |
parent | aae88013c7f4bea9065d9a5ed2e67c90496cdbd9 (diff) | |
download | bcm5719-llvm-59e4a6f5e2f7434ec6ec8bf334d211256105c897.tar.gz bcm5719-llvm-59e4a6f5e2f7434ec6ec8bf334d211256105c897.zip |
-fms-extensions: Recognize _alloca as an alias for the alloca builtin
Differential Revision: http://llvm-reviews.chandlerc.com/D1989
llvm-svn: 194617
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 1c62615f815..d2f8662b54b 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -604,6 +604,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD, } case Builtin::BIalloca: + case Builtin::BI_alloca: case Builtin::BI__builtin_alloca: { Value *Size = EmitScalarExpr(E->getArg(0)); return RValue::get(Builder.CreateAlloca(Builder.getInt8Ty(), Size)); |