forked from OSchip/llvm-project
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
This commit is contained in:
parent
4fa3b50fc3
commit
5cf1ece222
|
@ -193,7 +193,7 @@ public:
|
|||
Sum,
|
||||
Product
|
||||
} m_type = Type::Invalid;
|
||||
std::vector<const Operand> m_children;
|
||||
std::vector<Operand> m_children;
|
||||
lldb::addr_t m_immediate = 0;
|
||||
ConstString m_register;
|
||||
bool m_negative = false;
|
||||
|
|
|
@ -1259,7 +1259,7 @@ Process::HandleProcessStateChangedEvent (const EventSP &event_sp,
|
|||
const ValueObject::GetExpressionPathFormat format = ValueObject::GetExpressionPathFormat::eGetExpressionPathFormatHonorPointers;
|
||||
stream->PutCString("Likely cause: ");
|
||||
valobj_sp->GetExpressionPath(*stream, qualify_cxx_base_classes, format);
|
||||
stream->Printf(" accessed 0x%llx\n", crashing_address);
|
||||
stream->Printf(" accessed 0x%" PRIx64 "\n", crashing_address);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue