[Lldb-commits] [PATCH] D61805: Add nullptr check in FindLibCppStdFunctionCallableInfo()
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon May 13 10:12:01 PDT 2019
aprantl added inline comments.
================
Comment at: source/Target/CPPLanguageRuntime.cpp:217
if (symbol != NULL &&
symbol->GetName().GetStringRef().contains("__invoke")) {
----------------
davide wrote:
> This should probably be `nullptr`, anyway, my general comment is that this check is scattered all around the function and could be centralized in a single place.
`if (symbol && symbol->GetName() ....`
================
Comment at: source/Target/CPPLanguageRuntime.cpp:264
(symbol != nullptr &&
symbol->GetName().GetStringRef().contains("__invoke"))) {
// Case 1 and 2
----------------
this should probably be factored out into a bool variable.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61805/new/
https://reviews.llvm.org/D61805
More information about the lldb-commits
mailing list