mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
Have lldb_assert accept bool expressions
Summary: This changes lldb_assert to accept bool expressions as the parameter, this is because some objects (such as std::shared_ptr) are convertible to bool, but are not convertible to int, which leads to surprising errors. Reviewers: granata.enrico, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9565 llvm-svn: 236819
This commit is contained in:
@@ -17,7 +17,7 @@ using namespace llvm;
|
||||
using namespace lldb_private;
|
||||
|
||||
void
|
||||
lldb_private::lldb_assert (int expression,
|
||||
lldb_private::lldb_assert (bool expression,
|
||||
const char* expr_text,
|
||||
const char* func,
|
||||
const char* file,
|
||||
|
||||
Reference in New Issue
Block a user