[PATCH] D105564: Fix for DWARF parsing to better handle auto return type for member functions
Adrian Prantl via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 7 10:53:49 PDT 2021
aprantl added inline comments.
================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:2693
+ if (!try_resolving_type)
+ return true;
+
----------------
aprantl wrote:
> This block looks like it's more complicated than it needs to be. Could you just say
>
> ```
> if (other_die != die)
> if (other_die.Tag()) != DW_TAG_subprogram)
> return false;
>
> ```
> or am I missing something?
Definitely missed something :-)
```
if (other_die == die || (other_die.Tag()) != DW_TAG_subprogram))
return false;
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105564/new/
https://reviews.llvm.org/D105564
More information about the cfe-commits
mailing list