[llvm] r276843 - Fix Coroutines doc example
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 23:03:47 PDT 2016
Author: mehdi_amini
Date: Wed Jul 27 01:03:47 2016
New Revision: 276843
URL: http://llvm.org/viewvc/llvm-project?rev=276843&view=rev
Log:
Fix Coroutines doc example
SSA was broken.
Modified:
llvm/trunk/docs/Coroutines.rst
Modified: llvm/trunk/docs/Coroutines.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/Coroutines.rst?rev=276843&r1=276842&r2=276843&view=diff
==============================================================================
--- llvm/trunk/docs/Coroutines.rst (original)
+++ llvm/trunk/docs/Coroutines.rst Wed Jul 27 01:03:47 2016
@@ -166,7 +166,7 @@ execution of the coroutine until a suspe
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
More information about the llvm-commits
mailing list