diff options
author | Tim Northover <tnorthover@apple.com> | 2014-03-29 13:28:05 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-03-29 13:28:05 +0000 |
commit | e77cc39afff8b9bedbd5a3be6fdbeef5e786184f (patch) | |
tree | ea8fcd7c22a75c9434eb859d3d093f6a4247ea9a /clang/lib/CodeGen/CGBlocks.cpp | |
parent | e8fba987355caf92749e25a9f50b4f1ed1006fcf (diff) | |
download | bcm5719-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.cpp | 2 |
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); |