mirror of
https://github.com/intel/llvm.git
synced 2026-02-09 01:52:26 +08:00
[lldb] Fix 8be139fc12 for propery value changes
Fix 8be139fc12 for mid-air collision with the propery value changes.
This commit is contained in:
@@ -4588,20 +4588,20 @@ uint64_t TargetProperties::GetExprErrorLimit() const {
|
||||
|
||||
uint64_t TargetProperties::GetExprAllocAddress() const {
|
||||
const uint32_t idx = ePropertyExprAllocAddress;
|
||||
return m_collection_sp->GetPropertyAtIndexAsUInt64(
|
||||
nullptr, idx, g_target_properties[idx].default_uint_value);
|
||||
return m_collection_sp->GetPropertyAtIndexAsUInt64(idx).value_or(
|
||||
g_target_properties[idx].default_uint_value);
|
||||
}
|
||||
|
||||
uint64_t TargetProperties::GetExprAllocSize() const {
|
||||
const uint32_t idx = ePropertyExprAllocSize;
|
||||
return m_collection_sp->GetPropertyAtIndexAsUInt64(
|
||||
nullptr, idx, g_target_properties[idx].default_uint_value);
|
||||
return m_collection_sp->GetPropertyAtIndexAsUInt64(idx).value_or(
|
||||
g_target_properties[idx].default_uint_value);
|
||||
}
|
||||
|
||||
uint64_t TargetProperties::GetExprAllocAlign() const {
|
||||
const uint32_t idx = ePropertyExprAllocAlign;
|
||||
return m_collection_sp->GetPropertyAtIndexAsUInt64(
|
||||
nullptr, idx, g_target_properties[idx].default_uint_value);
|
||||
return m_collection_sp->GetPropertyAtIndexAsUInt64(idx).value_or(
|
||||
g_target_properties[idx].default_uint_value);
|
||||
}
|
||||
|
||||
bool TargetProperties::GetBreakpointsConsultPlatformAvoidList() {
|
||||
|
||||
Reference in New Issue
Block a user