[SmallVector] Resolve the constructor ambiguity. (#235087)
https://github.com/llvm/llvm-project/pull/234861 causes build failures
with some compilers.
This patch uses the solution proposed in
https://github.com/llvm/llvm-project/pull/234861#pullrequestreview-5633532997