Changeset e6cfa8ff for src


Ignore:
Timestamp:
Mar 9, 2020, 11:06:19 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
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
Message:

Fixed use after delete bug and regenerated stale tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Keywords.cc

    r9306559f re6cfa8ff  
    745745                if(!decl_suspend) SemanticError( loc, "suspend keyword applied to coroutines requires coroutines to be in scope, add #include <coroutine.hfa>\n");
    746746                auto expr = new UntypedExpr( VariableExpr::functionPointer( decl_suspend ) );
    747                 expr->location = stmt->location;
     747                expr->location = loc;
    748748
    749749                // Change this statement into a regular expr
    750750                assert(expr);
    751751                auto nstmt = new ExprStmt( expr );
    752                 nstmt->location = stmt->location;
     752                nstmt->location = loc;
    753753                return nstmt;
    754754        }
Note: See TracChangeset for help on using the changeset viewer.