[Lldb-commits] [lldb] r163285 - /lldb/trunk/source/Core/RegisterValue.cpp

Jason Molenda jmolenda at apple.com
Wed Sep 5 19:17:36 PDT 2012


Author: jmolenda
Date: Wed Sep  5 21:17:36 2012
New Revision: 163285

URL: http://llvm.org/viewvc/llvm-project?rev=163285&view=rev
Log:
For the eEncodingIEEE754 registers in RegisterValue::SetType,
only accept the first matching type based on lldb's sizeofs.
<rdar://problem/12222109>

Modified:
    lldb/trunk/source/Core/RegisterValue.cpp

Modified: lldb/trunk/source/Core/RegisterValue.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/RegisterValue.cpp?rev=163285&r1=163284&r2=163285&view=diff
==============================================================================
--- lldb/trunk/source/Core/RegisterValue.cpp (original)
+++ lldb/trunk/source/Core/RegisterValue.cpp Wed Sep  5 21:17:36 2012
@@ -287,9 +287,9 @@
         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;
 





More information about the lldb-commits mailing list