llvm-project/llvm/lib/DebugInfo/DWARF
Nick Desaulniers bf940622c8 [DWARF] hoist nullptr checks. NFC
Summary:
This was flagged in https://www.viva64.com/en/b/0629/ under "Snippet No.
15" (see under #13). It looks like PVS studio flags nullptr checks where
the ptr is used inbetween creation and checking against nullptr.

Reviewers: JDevlieghere, probinson

Reviewed By: JDevlieghere

Subscribers: RKSimon, hiraditya, llvm-commits, srhines

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62118

llvm-svn: 361176
2019-05-20 16:58:59 +00:00
..
CMakeLists.txt [DWARF] Revert r345546: Refactor range list extraction and dumping 2018-10-31 01:12:58 +00:00
DWARFAbbreviationDeclaration.cpp Revert "[DWARFFormValue] Cleanup DWARFFormValue interface. (2/2) (NFC)" 2019-03-02 01:10:00 +00:00
DWARFAcceleratorTable.cpp [DWARF] Fix dump of local/foreign TU lists in .debug_names 2019-04-29 08:55:10 +00:00
DWARFAddressRange.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFCompileUnit.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFContext.cpp Recommit [Object] Change object::SectionRef::getContents() to return Expected<StringRef> 2019-05-16 13:24:04 +00:00
DWARFDataExtractor.cpp [DWARF] Refactor RelocVisitor and fix computation of SHT_RELA-typed relocation entries 2019-03-22 02:43:11 +00:00
DWARFDebugAbbrev.cpp [DebugInfo] Fix use-after-move warning. NFCI. 2019-05-08 10:09:57 +00:00
DWARFDebugAddr.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFDebugArangeSet.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFDebugAranges.cpp Change some llvm::{lower,upper}_bound to llvm::bsearch. NFC 2019-04-17 07:58:05 +00:00
DWARFDebugFrame.cpp [DebugInfo] Fix the type of the formated variable 2019-03-07 16:31:08 +00:00
DWARFDebugInfoEntry.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFDebugLine.cpp DWARF v5: fix directory index in the line table 2019-05-06 08:03:46 +00:00
DWARFDebugLoc.cpp Change some llvm::{lower,upper}_bound to llvm::bsearch. NFC 2019-04-17 07:58:05 +00:00
DWARFDebugMacro.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFDebugPubTable.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFDebugRangeList.cpp [DebugInfo] add SectionedAddress to DebugInfo interfaces. 2019-02-27 13:17:36 +00:00
DWARFDebugRnglists.cpp [DWARF] Delete a stray break and a stray comment. NFC 2019-03-23 16:15:40 +00:00
DWARFDie.cpp DebugInfo: Only move types out of type units if they're named or type united 2019-05-10 19:15:29 +00:00
DWARFExpression.cpp [DebugInfo] Introduce DW_OP_LLVM_convert 2019-03-19 13:16:28 +00:00
DWARFFormValue.cpp [DWARF] hoist nullptr checks. NFC 2019-05-20 16:58:59 +00:00
DWARFGdbIndex.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFListTable.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFTypeUnit.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFUnit.cpp DebugInfo/DWARF: Minor expression simplification 2019-05-09 21:23:40 +00:00
DWARFUnitIndex.cpp Change some llvm::{lower,upper}_bound to llvm::bsearch. NFC 2019-04-17 07:58:05 +00:00
DWARFVerifier.cpp [DWARF] Use hasFileAtIndex to properly verify DWARF 5 after rL358732 2019-04-19 03:34:28 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00