mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adjust to LLVM change that requires sret parameter attributes to be
annotated with the pointee type. rdar://71808491
This commit is contained in:
@@ -191,7 +191,9 @@ getAccessorForComputedComponent(IRGenModule &IGM,
|
||||
accessorThunk->addAttribute(2, llvm::Attribute::NoCapture);
|
||||
accessorThunk->addAttribute(2, llvm::Attribute::NoAlias);
|
||||
// Output is sret.
|
||||
accessorThunk->addAttribute(1, llvm::Attribute::StructRet);
|
||||
accessorThunk->addAttribute(
|
||||
1, llvm::Attribute::getWithStructRetType(
|
||||
IGM.getLLVMContext(), thunkParams[0]->getPointerElementType()));
|
||||
break;
|
||||
case Setter:
|
||||
// Original accessor's args should be @in or @out, meaning they won't be
|
||||
|
||||
Reference in New Issue
Block a user