[all-commits] [llvm/llvm-project] 1fe24a: ADT: Split out isSafeToReferenceAfterResize helper...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Thu Nov 19 17:55:23 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1fe24a640c2837fbbfb03add122cb3b045914416
      https://github.com/llvm/llvm-project/commit/1fe24a640c2837fbbfb03add122cb3b045914416
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-11-19 (Thu, 19 Nov 2020)

  Changed paths:
    M llvm/include/llvm/ADT/SmallVector.h

  Log Message:
  -----------
  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.




More information about the All-commits mailing list