forked from OSchip/llvm-project
Fix a bug caught by adding LLVM_NODISCARD to StringRef.
llvm-svn: 287598
This commit is contained in:
parent
1c55c9b5bf
commit
7edc3a6ed3
|
@ -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'\"",
|
||||
|
|
Loading…
Reference in New Issue