summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/Materializer.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2015-10-02 18:40:30 +0000
committerSean Callanan <scallanan@apple.com>2015-10-02 18:40:30 +0000
commita994b0b27314668f5bcddaf8ba166c531ddb797c (patch)
tree9f462f35426bcc96dd5a0468f533920b80a159ba /lldb/source/Expression/Materializer.cpp
parent9e31cb9ea7be1a7f5c8690e36d827f483f5d7ae1 (diff)
downloadbcm5719-llvm-a994b0b27314668f5bcddaf8ba166c531ddb797c.tar.gz
bcm5719-llvm-a994b0b27314668f5bcddaf8ba166c531ddb797c.zip
Made GetScratchTypeSystemForLanguage return an error if desired.
Also made it not store nullptrs in its TypeSystemMap, so it will retry to make the AST context if it errored out last time. llvm-svn: 249167
Diffstat (limited to 'lldb/source/Expression/Materializer.cpp')
-rw-r--r--lldb/source/Expression/Materializer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Expression/Materializer.cpp b/lldb/source/Expression/Materializer.cpp
index 05ae34a9560..9b1a11e23f7 100644
--- a/lldb/source/Expression/Materializer.cpp
+++ b/lldb/source/Expression/Materializer.cpp
@@ -857,11 +857,12 @@ public:
return;
}
- TypeSystem *type_system = target_sp->GetScratchTypeSystemForLanguage(m_type.GetMinimumLanguage());
+ Error type_system_error;
+ TypeSystem *type_system = target_sp->GetScratchTypeSystemForLanguage(&type_system_error, m_type.GetMinimumLanguage());
if (!type_system)
{
- err.SetErrorString("Couldn't dematerialize a result variable: couldn't get the corresponding type system");
+ err.SetErrorStringWithFormat("Couldn't dematerialize a result variable: couldn't get the corresponding type system: %s", type_system_error.AsCString());
return;
}
OpenPOWER on IntegriCloud