[Lldb-commits] [PATCH] D110447: [lldb] Convert misc. StringConvert uses

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Sep 25 05:07:52 PDT 2021


mgorny added inline comments.


================
Comment at: lldb/source/Symbol/SymbolContext.cpp:986
-    m_end_line = StringConvert::ToSInt32(spec_string, 0, 0, &return_value);
-    if (return_value)
       m_type |= eLineEndSpecified;
----------------
teemperor wrote:
> This change and the one above make this return true on a parse failure. LLDB is of course one step ahead of us here and never even checks the return value anywhere (...), but I think it still makes sense to preserve the behaviour in this patch.
Ahh, good catch. Will fix in a minute.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110447/new/

https://reviews.llvm.org/D110447



More information about the lldb-commits mailing list