Changeset d76f32c for src/AST


Ignore:
Timestamp:
Jun 13, 2019, 2:32:02 PM (6 years ago)
Author:
Andrew Beach <ajbeach@…>
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:
6896548
Parents:
d60780c
Message:

ast::UniqueExpr? was not having one of its fields initialized.

Location:
src/AST
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.cpp

    rd60780c rd76f32c  
    99// Author           : Aaron B. Moss
    1010// Created On       : Wed May 15 17:00:00 2019
    11 // Last Modified By : Aaron B. Moss
    12 // Created On       : Wed May 15 17:00:00 2019
    13 // Update Count     : 1
     11// Last Modified By : Andrew Beach
     12// Created On       : Thr Jun 13 13:38:00 2019
     13// Update Count     : 2
    1414//
    1515
     
    382382
    383383UniqueExpr::UniqueExpr( const CodeLocation & loc, const Expr * e, unsigned long long i )
    384 : Expr( loc, e->result ), id( i ) {
     384: Expr( loc, e->result ), expr( e ), id( i ) {
    385385        assert( expr );
    386386        if ( id == -1ull ) {
  • src/AST/Expr.hpp

    rd60780c rd76f32c  
    693693        unsigned long long id;
    694694
    695         UniqueExpr( const CodeLocation & loc, const Expr * e, unsigned long long i = -1 );
     695        UniqueExpr( const CodeLocation & loc, const Expr * e, unsigned long long i = -1ull );
    696696
    697697        const Expr * accept( Visitor & v ) const override { return v.visit( this ); }
Note: See TracChangeset for help on using the changeset viewer.