HomePhabricator

PDBFPO: Use references instead of pointers, where possible

Authored by labath on Apr 5 2019, 12:28 AM.

Description

PDBFPO: Use references instead of pointers, where possible

Summary:
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.

Reviewers: aleksandr.urakov, amccarth

Subscribers: lldb-commits

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

llvm-svn: 357744

Details

Committed
labathApr 5 2019, 12:28 AM
Differential Revision
D60271: PDBFPO: Use references instead of pointers, where possible
Parents
rG94f1772b1e51: [X86] Promote i16 SRA instructions to i32
Branches
Unknown
Tags
Unknown