diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-06-16 00:36:17 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-06-16 00:36:17 +0000 |
commit | f9bc0589353e8e478d798aa9b8790978f6b2432e (patch) | |
tree | b2ccafbe0a05b3d7dc093657f5c1457fe8fb119d /llvm/lib/Option/Option.cpp | |
parent | f63d41469caa0930be1954f105267ee802134b69 (diff) | |
download | bcm5719-llvm-f9bc0589353e8e478d798aa9b8790978f6b2432e.tar.gz bcm5719-llvm-f9bc0589353e8e478d798aa9b8790978f6b2432e.zip |
Allow coroutine_handle<const T> to support creation from const references to the promise_type
It seems conceivable that a user would need to get a coroutine handle
having only a const reference to the promise_type, for example from
within a const member function of the promise.
This patch allows that use case. A coroutine_handle<const T> can be used
in essentially the same way a coroutine_handle<T>, ie to start and destroy
the coroutine. The constness of the promise doesn't/shouldn't propagate
to the handle.
llvm-svn: 305536
Diffstat (limited to 'llvm/lib/Option/Option.cpp')
0 files changed, 0 insertions, 0 deletions