HomePhabricator

ADT: Split out isSafeToReferenceAfterResize helper to use early returns, NFC

Authored by dexonsmith on Nov 18 2020, 6:57 PM.

Description

ADT: Split out isSafeToReferenceAfterResize helper to use early returns, NFC

The assertion logic in SmallVector::assertSafeToReferenceAfterResize is
hard to follow; split out SmallVector::isSafeToReferenceAfterResize and
add early returns and comments. No functionality change here.

Details

Committed
dexonsmithNov 19 2020, 5:55 PM
Parents
rG513d165b80ee: Port -lower-matrix-intrinsics-minimal to NPM
Branches
Unknown
Tags
Unknown