Fix -Wunused-result warnings in LLDB
authorReid Kleckner <rnk@google.com>
Thu, 14 Nov 2019 23:27:49 +0000 (15:27 -0800)
committerReid Kleckner <rnk@google.com>
Sat, 16 Nov 2019 00:38:00 +0000 (16:38 -0800)
commit4d23764dddc23e74ad165086d7f471a3e0e52bf8
tree7d86424620d4133ad11f6328fe4b7ab5e40ea335
parent0304360a40b45ffcbb040596d2a01733c0103455
Fix -Wunused-result warnings in LLDB

Three uses of try_lock intentionally ignore the result, as explained in
the comment. Make that explicit with a void cast.

Add what appears to be a missing return in the clang expression parser
code. It's a functional change, but presumably the right one.

Differential Revision: https://reviews.llvm.org/D70281
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h
lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp