]> granicus.if.org Git - clang/commit
[Sema] Allocate SmallVector to the right size.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 4 Aug 2015 14:46:06 +0000 (14:46 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 4 Aug 2015 14:46:06 +0000 (14:46 +0000)
commit88776dab94bc765b51694da3bf3b7f5644a92e26
treeb7eac6dbad5de38a21f5cce490ab9c8b3c74cc7a
parent6bcb1609b940850f3b1ce660c9026ab7e0804bcf
[Sema] Allocate SmallVector to the right size.

SmallVector::set_size does not reallocate the vector. Sadly I have no
idea how to test this. The vector never has more than one member in all
of the regression tests.

Found by inspection.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243987 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiateDecl.cpp