summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCoroutines/coro-alloc.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-04-17 22:40:44 +0000
committerEric Fiselier <eric@efcs.ca>2017-04-17 22:40:44 +0000
commit47ee0f4d3162af16a6f6d951f30d66c3fb8de50c (patch)
tree7342790b832471cd64192153993619bade5d4665 /clang/test/CodeGenCoroutines/coro-alloc.cpp
parent8948264ed7a7dc685246b1c30ded2d2a630c1860 (diff)
downloadbcm5719-llvm-47ee0f4d3162af16a6f6d951f30d66c3fb8de50c.tar.gz
bcm5719-llvm-47ee0f4d3162af16a6f6d951f30d66c3fb8de50c.zip
Revert r300504 - [coroutines] Fix rebuilding of implicit and dependent coroutine statements.
I have no idea what's happening here. The tests that fail on all of the bots pass on my machine. Further investigation needed. llvm-svn: 300511
Diffstat (limited to 'clang/test/CodeGenCoroutines/coro-alloc.cpp')
-rw-r--r--clang/test/CodeGenCoroutines/coro-alloc.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/clang/test/CodeGenCoroutines/coro-alloc.cpp b/clang/test/CodeGenCoroutines/coro-alloc.cpp
index 003095498be..f0a600eabe9 100644
--- a/clang/test/CodeGenCoroutines/coro-alloc.cpp
+++ b/clang/test/CodeGenCoroutines/coro-alloc.cpp
@@ -19,19 +19,8 @@ struct coroutine_handle<void> {
coroutine_handle(coroutine_handle<PromiseType>) {}
};
-} // end namespace experimental
-
-struct nothrow_t {};
-constexpr nothrow_t nothrow = {};
-
-} // end namespace std
-
-// Required when get_return_object_on_allocation_failure() is defined by
-// the promise.
-using SizeT = decltype(sizeof(int));
-void* operator new(SizeT __sz, const std::nothrow_t&) noexcept;
-void operator delete(void* __p, const std::nothrow_t&) noexcept;
-
+}
+}
struct suspend_always {
bool await_ready() { return false; }
@@ -156,7 +145,7 @@ struct std::experimental::coroutine_traits<int, promise_on_alloc_failure_tag> {
extern "C" int f4(promise_on_alloc_failure_tag) {
// CHECK: %[[ID:.+]] = call token @llvm.coro.id(i32 16
// CHECK: %[[SIZE:.+]] = call i64 @llvm.coro.size.i64()
- // CHECK: %[[MEM:.+]] = call i8* @_ZnwmRKSt9nothrow_t(i64 %[[SIZE]], %"struct.std::nothrow_t"* dereferenceable(1) @_ZStL7nothrow)
+ // CHECK: %[[MEM:.+]] = call i8* @_Znwm(i64 %[[SIZE]])
// CHECK: %[[OK:.+]] = icmp ne i8* %[[MEM]], null
// CHECK: br i1 %[[OK]], label %[[OKBB:.+]], label %[[ERRBB:.+]]
OpenPOWER on IntegriCloud