This factors out the check from various callers.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp | ||
---|---|---|
1262 | This part changes behavior, yeah? (previously the code was only conditional on has_template_params and is now conditional on both that and there actually being template parameter DIEs) Was that intended? If so, is there any testing that could be done to demonstrate the change in behavior? |
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp | ||
---|---|---|
1262 | presumably any visible change would only happen with broken debug info has_template_params is true if there are any template parameter child DIEs, but now we do more checking that those DIEs are actually reasonable I can revert this back if you want, but this seems better and I don't think I'm going to find time to add a test for broken debug info which may or may not actually hit this code path |
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp | ||
---|---|---|
1262 | Agree with David that if it's behaviour changing we should either test or leave as is |
This part changes behavior, yeah? (previously the code was only conditional on has_template_params and is now conditional on both that and there actually being template parameter DIEs) Was that intended? If so, is there any testing that could be done to demonstrate the change in behavior?