File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2131,11 +2131,10 @@ ValueObjectSP ValueObject::GetValueForExpressionPath_Impl(
2131
2131
temp_expression = temp_expression.drop_front (); // skip . or >
2132
2132
2133
2133
size_t next_sep_pos = temp_expression.find_first_of (" -.[" , 1 );
2134
- ConstString child_name;
2135
2134
if (next_sep_pos == llvm::StringRef::npos) // if no other separator just
2136
2135
// expand this last layer
2137
2136
{
2138
- child_name. SetString ( temp_expression) ;
2137
+ llvm::StringRef child_name = temp_expression;
2139
2138
ValueObjectSP child_valobj_sp =
2140
2139
root->GetChildMemberWithName (child_name);
2141
2140
@@ -2203,8 +2202,7 @@ ValueObjectSP ValueObject::GetValueForExpressionPath_Impl(
2203
2202
} else // other layers do expand
2204
2203
{
2205
2204
llvm::StringRef next_separator = temp_expression.substr (next_sep_pos);
2206
-
2207
- child_name.SetString (temp_expression.slice (0 , next_sep_pos));
2205
+ llvm::StringRef child_name = temp_expression.slice (0 , next_sep_pos);
2208
2206
2209
2207
ValueObjectSP child_valobj_sp =
2210
2208
root->GetChildMemberWithName (child_name);
You can’t perform that action at this time.
0 commit comments