Ignore:
Timestamp:
Nov 9, 2017, 5:42:35 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
10dc6908
Parents:
96fc67b
Message:

Replace variable in tuple destructor with dereference, fix assertion failure from multiple destructor calls (e.g., from a statement expression)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    r96fc67b r20eacb7  
    343343                std::list< Expression * > matches;
    344344                collectCtorDtorCalls( stmt, matches );
    345                 assert( matches.size() <= 1 );
     345                assertf( matches.size() <= 1, "%zd constructor/destructors found in %s", matches.size(), toString( stmt ).c_str() );
    346346                return matches.size() == 1 ? matches.front() : nullptr;
    347347        }
Note: See TracChangeset for help on using the changeset viewer.