Made IRForTarget error out correctly when it can't
complete the result type, preventing crashes later.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@147107 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/IRForTarget.cpp b/source/Expression/IRForTarget.cpp
index 258953a..2c0d8ba 100644
--- a/source/Expression/IRForTarget.cpp
+++ b/source/Expression/IRForTarget.cpp
@@ -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)