Print the correct error when our DynamicCheckerFunctions fail to install
authorRaphael Isemann <teemperor@gmail.com>
Tue, 11 Sep 2018 13:59:47 +0000 (13:59 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 11 Sep 2018 13:59:47 +0000 (13:59 +0000)
commit262dd8c9dfae9d72bbb310e7d4c1bd6ebbe8780e
tree2d1bc1c1352c926e144f7b82234e1112084f3af6
parent30a782176018067591e553bcf3ec8183581b0826
Print the correct error when our DynamicCheckerFunctions fail to install

Summary:
The check is inverted here: If we have error messages, we should print those instead
of our default error message. But currently we print the default message when we
actually have a sensible error to print.

Fixes https://bugs.llvm.org/show_bug.cgi?id=38383
Thanks Nat for the patch!

Reviewers: #lldb, JDevlieghere

Reviewed By: JDevlieghere

Subscribers: JDevlieghere, lldb-commits

Differential Revision: https://reviews.llvm.org/D51602

llvm-svn: 341940
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp