Ignore:
Timestamp:
Sep 5, 2024, 3:57:05 PM (13 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
29c8675
Parents:
ad47ec4 (diff), 508cff0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/GenType.cpp

    rad47ec4 r9bb6c5f  
    168168
    169169        if ( type->params.empty() ) {
    170                 if ( type->isVarArgs ) {
     170                if ( !type->isVarArgs ) {
     171                        os << "(void)";
     172                } else if ( options.genC ) {
    171173                        os << "()";
    172174                } else {
    173                         os << "(void)";
     175                        os << "(...)";
    174176                }
    175177        } else {
Note: See TracChangeset for help on using the changeset viewer.