Changes in src/SynTree/ApplicationExpr.cc [849720f:14388c1]
- File:
-
- 1 edited
-
src/SynTree/ApplicationExpr.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ApplicationExpr.cc
r849720f r14388c1 25 25 #include "Declaration.h" // for Declaration 26 26 #include "Expression.h" // for ParamEntry, ApplicationExpr, Expression 27 #include "InitTweak/InitTweak.h" // for getFunction28 27 #include "ResolvExpr/typeops.h" // for extractResultType 29 28 #include "Type.h" // for Type, PointerType, FunctionType … … 78 77 79 78 bool ApplicationExpr::get_lvalue() const { 80 // from src/GenPoly/Lvalue.cc: isIntrinsicReference 81 static std::set<std::string> lvalueFunctions = { "*?", "?[?]" }; 82 if ( const DeclarationWithType * func = InitTweak::getFunction( this ) ) { 83 return func->linkage == LinkageSpec::Intrinsic && lvalueFunctions.count(func->name); 84 } 85 return false; 79 return result->get_lvalue(); 86 80 } 87 81
Note:
See TracChangeset
for help on using the changeset viewer.