[all-commits] [llvm/llvm-project] 40e877: ADT: Weaken SmallVector::resize assertion from 5ab...

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


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 40e877264dc5bd9a025bc1fc0f01fb69a3f3cdc2
      https://github.com/llvm/llvm-project/commit/40e877264dc5bd9a025bc1fc0f01fb69a3f3cdc2
  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
    M llvm/unittests/ADT/SmallVectorTest.cpp

  Log Message:
  -----------
  ADT: Weaken SmallVector::resize assertion from 5abf76fbe37380874a88cc9aa02164800e4e10f3

There's no need to check for reference invalidation when
`SmallVector::resize` is shrinking; the parameter isn't accessed.

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




More information about the All-commits mailing list