projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c9fc73
)
Fix Coroutines doc example
author
Mehdi Amini
<mehdi.amini@apple.com>
Wed, 27 Jul 2016 06:03:47 +0000
(06:03 +0000)
committer
Mehdi Amini
<mehdi.amini@apple.com>
Wed, 27 Jul 2016 06:03:47 +0000
(06:03 +0000)
SSA was broken.
llvm-svn: 276843
llvm/docs/Coroutines.rst
patch
|
blob
|
history
diff --git
a/llvm/docs/Coroutines.rst
b/llvm/docs/Coroutines.rst
index
87d5022
..
4fbdabf
100644
(file)
--- a/
llvm/docs/Coroutines.rst
+++ b/
llvm/docs/Coroutines.rst
@@
-166,7
+166,7
@@
execution of the coroutine until a suspend point is reached:
entry:
%alloc = call noalias i8* @malloc(i32 24)
%0 = call noalias i8* @llvm.coro.begin(i8* %alloc, i32 0, i8* null, i8* null)
- %frame = bitcast i8* %
frame
to %f.frame*
+ %frame = bitcast i8* %
0
to %f.frame*
%1 = getelementptr %f.frame, %f.frame* %frame, i32 0, i32 0
store void (%f.frame*)* @f.resume, void (%f.frame*)** %1
%2 = getelementptr %f.frame, %f.frame* %frame, i32 0, i32 1