Author: zturner
Date: Mon Nov 21 17:18:13 2016
New Revision: 287598

URL: http://llvm.org/viewvc/llvm-project?rev=287598&view=rev
Log:
Fix a bug caught by adding LLVM_NODISCARD to StringRef.

Modified:
    lldb/trunk/source/Target/StackFrame.cpp

Modified: lldb/trunk/source/Target/StackFrame.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/StackFrame.cpp?rev=287598&r1=287597&r2=287598&view=diff
==============================================================================
--- lldb/trunk/source/Target/StackFrame.cpp (original)
+++ lldb/trunk/source/Target/StackFrame.cpp Mon Nov 21 17:18:13 2016
@@ -931,7 +931,7 @@ ValueObjectSP StackFrame::GetValueForVar
         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'\"",


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to