diff options
author | Sean Callanan <scallanan@apple.com> | 2013-10-04 21:35:29 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2013-10-04 21:35:29 +0000 |
commit | 9076c0fffbc1323db78b789f040b30295a3cfcf0 (patch) | |
tree | a90d0caeb8a23505699a660f87fb73d4a224b068 /lldb/source/Commands/CommandObjectRegister.cpp | |
parent | 210791a021a18e3eb60d4a67df6cd452006aa338 (diff) | |
download | bcm5719-llvm-9076c0fffbc1323db78b789f040b30295a3cfcf0.tar.gz bcm5719-llvm-9076c0fffbc1323db78b789f040b30295a3cfcf0.zip |
Made all other "operator bool"s explicit and ensured
that all clients use them explicitly. This will hopefully
prevent any future confusion where things get cast to types
we don't expect.
<rdar://problem/15146458>
llvm-svn: 191984
Diffstat (limited to 'lldb/source/Commands/CommandObjectRegister.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectRegister.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectRegister.cpp b/lldb/source/Commands/CommandObjectRegister.cpp index fd54ecceb9c..7cbfaa5d60f 100644 --- a/lldb/source/Commands/CommandObjectRegister.cpp +++ b/lldb/source/Commands/CommandObjectRegister.cpp @@ -98,7 +98,7 @@ public: { strm.Indent (); - bool prefix_with_altname = m_command_options.alternate_name; + bool prefix_with_altname = (bool)m_command_options.alternate_name; bool prefix_with_name = !prefix_with_altname; reg_value.Dump(&strm, reg_info, prefix_with_name, prefix_with_altname, m_format_options.GetFormat(), 8); if ((reg_info->encoding == eEncodingUint) || (reg_info->encoding == eEncodingSint)) |