summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Coroutines
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-05-02 22:07:37 +0000
committerReid Kleckner <rnk@google.com>2017-05-02 22:07:37 +0000
commitee4930b6886d713778fff4de3948946c7658d9d9 (patch)
tree24f60ae0cadbe03c5b098d2c86bba5ebfd88636f /llvm/lib/Transforms/Coroutines
parent65134057357725c245fcfeb4b588518ef6d6db20 (diff)
downloadbcm5719-llvm-ee4930b6886d713778fff4de3948946c7658d9d9.tar.gz
bcm5719-llvm-ee4930b6886d713778fff4de3948946c7658d9d9.zip
Re-land r301697 "[IR] Make add/remove Attributes use AttrBuilder instead of AttributeList"
This time, I fixed, built, and tested clang. This reverts r301712. llvm-svn: 301981
Diffstat (limited to 'llvm/lib/Transforms/Coroutines')
-rw-r--r--llvm/lib/Transforms/Coroutines/CoroSplit.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
index ab648f884c5..f5bb5cc274d 100644
--- a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
@@ -245,9 +245,7 @@ static Function *createClone(Function &F, Twine Suffix, coro::Shape &Shape,
// Remove old return attributes.
NewF->removeAttributes(
AttributeList::ReturnIndex,
- AttributeList::get(
- NewF->getContext(), AttributeList::ReturnIndex,
- AttributeFuncs::typeIncompatible(NewF->getReturnType())));
+ AttributeFuncs::typeIncompatible(NewF->getReturnType()));
// Make AllocaSpillBlock the new entry block.
auto *SwitchBB = cast<BasicBlock>(VMap[ResumeEntry]);
OpenPOWER on IntegriCloud