summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2016-03-11 04:30:31 +0000
committerJohn McCall <rjmccall@apple.com>2016-03-11 04:30:31 +0000
commitc56a8b32840eec263276cd4eddf84a09d1d42e3f (patch)
tree17f8238d29ea50b65187fee7f447bcc555ecffe7 /clang/lib/CodeGen/CGStmt.cpp
parente98095026f2ca2466e24df8727fb56677ecab649 (diff)
downloadbcm5719-llvm-c56a8b32840eec263276cd4eddf84a09d1d42e3f.tar.gz
bcm5719-llvm-c56a8b32840eec263276cd4eddf84a09d1d42e3f.zip
Preserve ExtParameterInfos into CGFunctionInfo.
As part of this, make the function-arrangement interfaces a little simpler and more semantic. NFC. llvm-svn: 263191
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index 950781aa922..5b5afba04dd 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -2159,8 +2159,7 @@ CodeGenFunction::GenerateCapturedStmtFunction(const CapturedStmt &S) {
// Create the function declaration.
FunctionType::ExtInfo ExtInfo;
const CGFunctionInfo &FuncInfo =
- CGM.getTypes().arrangeFreeFunctionDeclaration(Ctx.VoidTy, Args, ExtInfo,
- /*IsVariadic=*/false);
+ CGM.getTypes().arrangeBuiltinFunctionDeclaration(Ctx.VoidTy, Args);
llvm::FunctionType *FuncLLVMTy = CGM.getTypes().GetFunctionType(FuncInfo);
llvm::Function *F =
OpenPOWER on IntegriCloud