diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-05-29 19:24:25 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-05-29 19:24:25 +0000 |
commit | 3fd0228ead48aa9511a78f171ba08774f32df88e (patch) | |
tree | 36ebbae75b2c609360f6eea5c45c5c781d233dbb /llvm/lib/Support/Timer.cpp | |
parent | c7bf2a1fae84e9bc82993512f76f3297d3663d0f (diff) | |
download | llvm-3fd0228ead48aa9511a78f171ba08774f32df88e.zip llvm-3fd0228ead48aa9511a78f171ba08774f32df88e.tar.gz llvm-3fd0228ead48aa9511a78f171ba08774f32df88e.tar.bz2 |
[coroutines] Make coroutine_handle<T>::from_address ill-formed for everything but void*.
from_address requires that the provided pointer refer to the suspended coroutine,
which doesn't have a type, or at least not one knowable by the user. Therefore
every use of `from_address` with a typed pointer is almost certainly a bug.
This behavior is a part of the TS specification, but hopefully it will be
in the future.
llvm-svn: 304172
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
0 files changed, 0 insertions, 0 deletions