summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-03-29 13:28:05 +0000
committerTim Northover <tnorthover@apple.com>2014-03-29 13:28:05 +0000
commite77cc39afff8b9bedbd5a3be6fdbeef5e786184f (patch)
treeea8fcd7c22a75c9434eb859d3d093f6a4247ea9a /clang/lib/CodeGen/CGBlocks.cpp
parente8fba987355caf92749e25a9f50b4f1ed1006fcf (diff)
downloadbcm5719-llvm-e77cc39afff8b9bedbd5a3be6fdbeef5e786184f.tar.gz
bcm5719-llvm-e77cc39afff8b9bedbd5a3be6fdbeef5e786184f.zip
ObjC: allow targets to decide when to use stret for blocks.
This was originally part of the ARM64 patch, but seems semantically separate. llvm-svn: 205097
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index ce2a1938706..15b08d476c7 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -1121,7 +1121,7 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD,
const CGFunctionInfo &fnInfo = CGM.getTypes().arrangeFreeFunctionDeclaration(
fnType->getReturnType(), args, fnType->getExtInfo(),
fnType->isVariadic());
- if (CGM.ReturnTypeUsesSRet(fnInfo))
+ if (CGM.ReturnSlotInterferesWithArgs(fnInfo))
blockInfo.UsesStret = true;
llvm::FunctionType *fnLLVMType = CGM.getTypes().GetFunctionType(fnInfo);
OpenPOWER on IntegriCloud