/* Pop the location stack. LOC must be the current location, i.e. the top of the stack.  */
Location* loc_pop(Location *loc)
/* Pop the location stack. LOC must be the current location, i.e. the top of the stack.  */
Location* loc_pop(Location *loc)
{
    assert(cur_loc == loc && loc->prev);
    cur_loc = loc->prev;
    loc->prev = NULL;
    return loc;
}