[Lldb-commits] [lldb] r159946 - /lldb/branches/apple/igneous/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp

Sean Callanan scallanan at apple.com
Mon Jul 9 11:28:10 PDT 2012


Author: spyffe
Date: Mon Jul  9 13:28:10 2012
New Revision: 159946

URL: http://llvm.org/viewvc/llvm-project?rev=159946&view=rev
Log:
<rdar://problem/11831245>

Modified:
    lldb/branches/apple/igneous/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp

Modified: lldb/branches/apple/igneous/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/apple/igneous/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp?rev=159946&r1=159945&r2=159946&view=diff
==============================================================================
--- lldb/branches/apple/igneous/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp (original)
+++ lldb/branches/apple/igneous/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp Mon Jul  9 13:28:10 2012
@@ -272,6 +272,8 @@
     // the actual register it pertains to is not important, just the size needs 
     // to be correct. Here we use "eax"...
     const RegisterInfo *reg_info_32 = reg_ctx->GetRegisterInfoByName("eax");
+    if (!reg_info_32)
+        return false; // TODO this should actually never happen
 
     // Make room for the argument(s) on the stack
 





More information about the lldb-commits mailing list