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/CodeGenerator.cpp

    rad47ec4 r9bb6c5f  
    180180
    181181        if ( 0 == decl->params.size() ) {
    182                 if ( decl->type->isVarArgs ) {
     182                if ( !decl->type->isVarArgs ) {
     183                        acc << "(void)";
     184                } else if ( options.genC ) {
    183185                        acc << "()";
    184186                } else {
    185                         acc << "(void)";
     187                        acc << "(...)";
    186188                }
    187189        } else {
Note: See TracChangeset for help on using the changeset viewer.