From 7edc3a6ed350f0f893f9f465710f415e21a19197 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Mon, 21 Nov 2016 23:18:13 +0000 Subject: [PATCH] Fix a bug caught by adding LLVM_NODISCARD to StringRef. llvm-svn: 287598 --- lldb/source/Target/StackFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Target/StackFrame.cpp b/lldb/source/Target/StackFrame.cpp index 8daa64984b55..ec30fd62618a 100644 --- a/lldb/source/Target/StackFrame.cpp +++ b/lldb/source/Target/StackFrame.cpp @@ -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'\"",