summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/IRForTarget.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-12-21 23:44:05 +0000
committerSean Callanan <scallanan@apple.com>2011-12-21 23:44:05 +0000
commit960534c86652caa52e18beb1dcb00c3e58d4cb72 (patch)
tree7a3df59da09a9c20619a2c1e44f181893f643b0a /lldb/source/Expression/IRForTarget.cpp
parente04f51662c7630d2f6749fab64ddef29dc3e8869 (diff)
downloadbcm5719-llvm-960534c86652caa52e18beb1dcb00c3e58d4cb72.tar.gz
bcm5719-llvm-960534c86652caa52e18beb1dcb00c3e58d4cb72.zip
Made IRForTarget error out correctly when it can't
complete the result type, preventing crashes later. llvm-svn: 147107
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
-rw-r--r--lldb/source/Expression/IRForTarget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp
index 258953ac597..2c0d8ba80fa 100644
--- a/lldb/source/Expression/IRForTarget.cpp
+++ b/lldb/source/Expression/IRForTarget.cpp
@@ -675,8 +675,9 @@ IRForTarget::CreateResultVariable (llvm::Function &llvm_function)
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)
OpenPOWER on IntegriCloud