Changeset e82ef13 for src/SymTab


Ignore:
Timestamp:
Jul 10, 2018, 3:53:38 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
d804830
Parents:
2dc6621
git-author:
Rob Schluntz <rschlunt@…> (07/10/18 14:45:18)
git-committer:
Rob Schluntz <rschlunt@…> (07/10/18 15:53:38)
Message:

Transfer location from typedef instance to actual type [fixes #97]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r2dc6621 re82ef13  
    890890                if ( def != typedefNames.end() ) {
    891891                        Type *ret = def->second.first->base->clone();
     892                        ret->location = typeInst->location;
    892893                        ret->get_qualifiers() |= typeInst->get_qualifiers();
    893894                        // attributes are not carried over from typedef to function parameters/return values
Note: See TracChangeset for help on using the changeset viewer.