[Lldb-commits] [PATCH] D71003: [lldb/DWARF] Switch to llvm location list parser
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Dec 4 05:48:13 PST 2019
labath marked an inline comment as done.
labath added inline comments.
================
Comment at: lldb/source/Expression/DWARFExpression.cpp:2829
+ if (!loc)
+ LLDB_LOG_ERROR(log, loc.takeError(), "{0}");
+ if (loc->Range) {
----------------
dblaikie wrote:
> Does LLDB_LOG_ERROR stop the program? If not, then the next line ("if (loc->Range)" will invoke UB when it tries to dereference the "loc" when it is unset.
It doesn't. You're right, there should be a return here, just let me see if I can tickle this into exploding.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71003/new/
https://reviews.llvm.org/D71003
More information about the lldb-commits
mailing list