- Timestamp:
- Mar 9, 2020, 11:06:19 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 5b544a6
- Parents:
- 9306559f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
r9306559f re6cfa8ff 745 745 if(!decl_suspend) SemanticError( loc, "suspend keyword applied to coroutines requires coroutines to be in scope, add #include <coroutine.hfa>\n"); 746 746 auto expr = new UntypedExpr( VariableExpr::functionPointer( decl_suspend ) ); 747 expr->location = stmt->location;747 expr->location = loc; 748 748 749 749 // Change this statement into a regular expr 750 750 assert(expr); 751 751 auto nstmt = new ExprStmt( expr ); 752 nstmt->location = stmt->location;752 nstmt->location = loc; 753 753 return nstmt; 754 754 }
Note: See TracChangeset
for help on using the changeset viewer.