- File:
-
- 1 edited
-
src/ResolvExpr/AlternativeFinder.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
re04ef3a r70f89d00 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sat May 16 23:52:08 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Jun 13 16:13:54201613 // Update Count : 2 511 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Apr 20 14:24:03 2016 13 // Update Count : 24 14 14 // 15 15 … … 39 39 #include "Tuples/NameMatcher.h" 40 40 #include "Common/utility.h" 41 #include "InitTweak/InitTweak.h" 41 42 42 43 extern bool resolvep; … … 546 547 547 548 { 548 NameExpr *fname = 0;; 549 if ( ( fname = dynamic_cast<NameExpr *>( untypedExpr->get_function())) 550 && ( fname->get_name() == std::string("&&")) ) { 549 std::string fname = InitTweak::getFunctionName( untypedExpr ); 550 if ( fname == "&&" ) { 551 551 VoidType v = Type::Qualifiers(); // resolve to type void * 552 552 PointerType pt( Type::Qualifiers(), v.clone() ); … … 757 757 for ( std::list< DeclarationWithType* >::iterator i = declList.begin(); i != declList.end(); ++i ) { 758 758 VariableExpr newExpr( *i, nameExpr->get_argName() ); 759 newExpr.set_extension( nameExpr->get_extension() );760 759 alternatives.push_back( Alternative( newExpr.clone(), env, Cost() ) ); 761 760 PRINT(
Note:
See TracChangeset
for help on using the changeset viewer.