Changeset df6cc9d for src/AST/Expr.cpp
- Timestamp:
- Oct 19, 2022, 4:43:26 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 1a45263
- Parents:
- 9cd5bd2 (diff), 135143ba (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
r9cd5bd2 rdf6cc9d 22 22 #include "Copy.hpp" // for shallowCopy 23 23 #include "GenericSubstitution.hpp" 24 #include "Inspect.hpp" 24 25 #include "LinkageSpec.hpp" 25 26 #include "Stmt.hpp" … … 29 30 #include "Common/SemanticError.h" 30 31 #include "GenPoly/Lvalue.h" // for referencesPermissable 31 #include "InitTweak/InitTweak.h" // for getFunction, getPointerBase32 32 #include "ResolvExpr/typeops.h" // for extractResultType 33 33 #include "Tuples/Tuples.h" // for makeTupleType … … 58 58 59 59 bool ApplicationExpr::get_lvalue() const { 60 if ( const DeclWithType * func = InitTweak::getFunction( this ) ) {60 if ( const DeclWithType * func = getFunction( this ) ) { 61 61 return func->linkage == Linkage::Intrinsic && lvalueFunctionNames.count( func->name ); 62 62 } … … 67 67 68 68 bool UntypedExpr::get_lvalue() const { 69 std::string fname = InitTweak::getFunctionName( this );69 std::string fname = getFunctionName( this ); 70 70 return lvalueFunctionNames.count( fname ); 71 71 } … … 76 76 UntypedExpr * ret = createCall( loc, "*?", { arg } ); 77 77 if ( const Type * ty = arg->result ) { 78 const Type * base = InitTweak::getPointerBase( ty );78 const Type * base = getPointerBase( ty ); 79 79 assertf( base, "expected pointer type in dereference (type was %s)", toString( ty ).c_str() ); 80 80 … … 335 335 // first argument 336 336 assert( callExpr ); 337 const Expr * arg = InitTweak::getCallArg( callExpr, 0 );337 const Expr * arg = getCallArg( callExpr, 0 ); 338 338 assert( arg ); 339 339 result = arg->result;
Note:
See TracChangeset
for help on using the changeset viewer.