For the eEncodingIEEE754 registers in RegisterValue::SetType,

only accept the first matching type based on lldb's sizeofs.
<rdar://problem/12222109>

llvm-svn: 163285
This commit is contained in:
Jason Molenda 2012-09-06 02:17:36 +00:00
parent 4ed61b001c
commit 9a9422a4ff
1 changed files with 2 additions and 2 deletions

View File

@ -287,9 +287,9 @@ RegisterValue::SetType (const RegisterInfo *reg_info)
case eEncodingIEEE754:
if (byte_size == sizeof(float))
m_type = eTypeFloat;
if (byte_size == sizeof(double))
else if (byte_size == sizeof(double))
m_type = eTypeDouble;
if (byte_size == sizeof(long double))
else if (byte_size == sizeof(long double))
m_type = eTypeLongDouble;
break;