[Lldb-commits] [lldb] r147107 - /lldb/trunk/source/Expression/IRForTarget.cpp

Sean Callanan scallanan at apple.com
Wed Dec 21 15:44:05 PST 2011


Author: spyffe
Date: Wed Dec 21 17:44:05 2011
New Revision: 147107

URL: http://llvm.org/viewvc/llvm-project?rev=147107&view=rev
Log:
Made IRForTarget error out correctly when it can't
complete the result type, preventing crashes later.

Modified:
    lldb/trunk/source/Expression/IRForTarget.cpp

Modified: lldb/trunk/source/Expression/IRForTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRForTarget.cpp?rev=147107&r1=147106&r2=147107&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRForTarget.cpp (original)
+++ lldb/trunk/source/Expression/IRForTarget.cpp Wed Dec 21 17:44:05 2011
@@ -675,8 +675,9 @@
             log->Printf("Result type has size 0");
         
         if (m_error_stream)
-            m_error_stream->Printf("Internal error [IRForTarget]: Result type '%s' has invalid size\n", 
+            m_error_stream->Printf("Error [IRForTarget]: Size of result type '%s' couldn't be determined\n", 
                                    type_desc_stream.GetData());
+        return false;
     }
     
     if (log)





More information about the lldb-commits mailing list