array_pod_sort: Since we're checking the length anyways also ignore one-element ranges
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 14 Mar 2015 14:53:14 +0000 (14:53 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 14 Mar 2015 14:53:14 +0000 (14:53 +0000)
commitc0cc039a579d1691030af9cb536c779c717f5800
treee502ade23fa743bd41b259e44c401ba545f23244
parent439cc2c5de80f5810c1733445673658a446d4a0c
array_pod_sort: Since we're checking the length anyways also ignore one-element ranges

Sorting them is obviously a noop and we can skip the libc call. This is
surprisingly common in clang. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232265 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/STLExtras.h