Details
Diff Detail
- Build Status
Buildable 8667 Build 8667: arc lint + arc unit
Event Timeline
This needs a testcase.
| include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h | ||
|---|---|---|
| 68 | I would use a std::pair<> or a simple struct here. | |
| lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp | ||
| 102 | A dwarf::Tag is a uint_16 — do we also need to check that the value is within range, or is this impossible because we already verified the FORM? | |
| 108 | return {DieOffset, DieTag}; should also work here | |
| lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
| 550 | maybe continue; here and get rid of the else? not sure if this will be better :-) | |
| 554 | Could we be more specific in the error message? | |
| lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
|---|---|---|
| 534 | I think something like this would be more readable: unsigned Offset; unsigned Tag; std::tie(Offset, Tag) = AccelTable.readAtoms(HashDataOffset); | |
| 550 | The LLVM coding style prefers early exits over nested ifs to improve readability. I'll leave this up to you. | |
| test/tools/llvm-dwarfdump/X86/apple_types_verify_tag.s | ||
| 121 ↗ | (On Diff #108950) | Where's the CHECK? |
| lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
|---|---|---|
| 534 | I followed the advice, thanks! | |
| test/tools/llvm-dwarfdump/X86/apple_types_verify_tag.s | ||
| 121 ↗ | (On Diff #108950) | beginning of test:
|
I would use a std::pair<> or a simple struct here.