| 145 | |
| 146 | template<typename T> |
| 147 | static bool segmentsReferTo(const T &segments, const TempVariableRef &ref) |
| 148 | { |
| 149 | for (const auto &segment : segments) { |
| 150 | if (refsContain(segment->GetTempVarRefs(), ref)) { |
| 151 | return true; |
| 152 | } |
| 153 | } |
| 154 | return false; |
| 155 | } |
| 156 | |
| 157 | bool TempVariable::IsInUse() const |
| 158 | { |
no test coverage detected