[SmallVector] Move error handling out of line
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 6 Sep 2020 16:05:24 +0000 (18:05 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 6 Sep 2020 16:06:44 +0000 (18:06 +0200)
commit8c386c94749a78392fd763f8449ca3e55f030ffd
tree7a502d3390cd9e7abcd5353b4f333f6b6a01563d
parentecac5c28089283fbaef1fec758535ca700095a09
[SmallVector] Move error handling out of line

This reduces duplication and avoids emitting ice cold code into every
instance of grow().
llvm/include/llvm/ADT/SmallVector.h
llvm/lib/Support/SmallVector.cpp