--------------------------------------------------------------
| 1056 | |
| 1057 | // -------------------------------------------------------------- |
| 1058 | Variable * |
| 1059 | VariableSelector::SelectParentParam(Effect::Access access, |
| 1060 | const CGContext &cg_context, |
| 1061 | const Type* type, |
| 1062 | const CVQualifiers* qfer, |
| 1063 | eMatchType mt, |
| 1064 | const vector<const Variable*>& invalid_vars) |
| 1065 | { |
| 1066 | Function &parent = *cg_context.get_current_func(); |
| 1067 | if (parent.param.empty()) |
| 1068 | return SelectParentLocal(access, cg_context, type, qfer, mt, invalid_vars); |
| 1069 | Variable* var = choose_var(parent.param, access, cg_context, type, qfer, mt, invalid_vars); |
| 1070 | ERROR_GUARD(NULL); |
| 1071 | return var ? var : SelectParentLocal(access, cg_context, type, qfer, mt, invalid_vars); |
| 1072 | } |
| 1073 | |
| 1074 | // -------------------------------------------------------------- |
| 1075 | Variable * |
nothing calls this directly
no test coverage detected