diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-07-27 06:03:47 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-07-27 06:03:47 +0000 |
commit | be1cb22587cc04146165944c8a7e4519ca966aa8 (patch) | |
tree | 5ccf8d76f1292b07a3df0c81eaa84fb511615406 /llvm/docs/Coroutines.rst | |
parent | 7c9fc738b19db26417565d99f6cdff629ae67010 (diff) | |
download | bcm5719-llvm-be1cb22587cc04146165944c8a7e4519ca966aa8.tar.gz bcm5719-llvm-be1cb22587cc04146165944c8a7e4519ca966aa8.zip |
Fix Coroutines doc example
SSA was broken.
llvm-svn: 276843
Diffstat (limited to 'llvm/docs/Coroutines.rst')
-rw-r--r-- | llvm/docs/Coroutines.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/Coroutines.rst b/llvm/docs/Coroutines.rst index 87d5022cc68..4fbdabf5a04 100644 --- 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 |