[Lldb-commits] [PATCH] D108228: Fix error handling in the libcxx std::string formatter
Jim Ingham via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 23 14:29:52 PDT 2021
jingham added a comment.
Raphael's analysis of what the test needs is right. We always check pointers for validity before we do operations on them, so we wouldn't have tried to get the summary.
The reason I passed the string reference to a function and check it there is because from many years of experience, I don't trust compilers even at -O0 not to elide references to silly unused variables. But at -O0 a function argument is never going away.
But if folks think this is over paranoid on my part, I can simplify the test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108228/new/
https://reviews.llvm.org/D108228
More information about the lldb-commits
mailing list