Fix a bug caught by adding LLVM_NODISCARD to StringRef.

llvm-svn: 287598
This commit is contained in:
Zachary Turner 2016-11-21 23:18:13 +00:00
parent 1c55c9b5bf
commit 7edc3a6ed3
1 changed files with 1 additions and 1 deletions

View File

@ -931,7 +931,7 @@ ValueObjectSP StackFrame::GetValueForVariableExpressionPath(
return ValueObjectSP();
}
index_expr.drop_front();
index_expr = index_expr.drop_front();
long final_index = 0;
if (index_expr.getAsInteger(0, final_index)) {
error.SetErrorStringWithFormat("invalid range expression \"'%s'\"",