From 5cf1ece222936a0b7d6cc053c6db71a1956412d9 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 6 Sep 2016 10:04:22 +0000 Subject: Fix build breakage in r280692 The commit introduced an array of const objects, which libstdc++ does not like. Make the object non-const. Also fix a compiler warning while I'm in there. llvm-svn: 280697 --- lldb/source/Target/StackFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Target/StackFrame.cpp') diff --git a/lldb/source/Target/StackFrame.cpp b/lldb/source/Target/StackFrame.cpp index aaf0a4d7ac7..887207199e2 100644 --- a/lldb/source/Target/StackFrame.cpp +++ b/lldb/source/Target/StackFrame.cpp @@ -1564,7 +1564,7 @@ namespace ValueObjectSP GetValueForOffset(StackFrame &frame, ValueObjectSP &parent, int64_t offset) { - if (offset < 0 || offset >= parent->GetByteSize()) + if (offset < 0 || uint64_t(offset) >= parent->GetByteSize()) { return ValueObjectSP(); } -- cgit v1.2.3