Changeset 2a7e29b for src/main.cc


Ignore:
Timestamp:
May 27, 2016, 3:32:30 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
677c1be
Parents:
4a8c875
Message:

fix crash when taking cfa-cpp input from stdin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r4a8c875 r2a7e29b  
    203203                } else {
    204204                        input = stdin;
     205                        // if running cfa-cpp directly, might forget to pass -F option. Since this takes from stdin, pass
     206                        // a fake name along
     207                        if ( filename == NULL ) filename = "stdin";
    205208                } // if
    206209
Note: See TracChangeset for help on using the changeset viewer.