[Lldb-commits] [PATCH] D60271: PDBFPO: Use references instead of pointers, where possible

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 4 08:40:34 PDT 2019


labath created this revision.
labath added reviewers: aleksandr.urakov, amccarth.

The code was passing pointers around, expecting they would be not null.
In c++ it is possible to convey this notion explicitly by using a
reference instead.

Not all uses of pointers could be converted to references (e.g. one
can't store references in a container), but this will at least make it
locally obvious that code is dealing with nonnull pointers.


https://reviews.llvm.org/D60271

Files:
  source/Plugins/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpression.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60271.193728.patch
Type: text/x-patch
Size: 9846 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190404/6686ff39/attachment-0001.bin>


More information about the lldb-commits mailing list