]> granicus.if.org Git - clang/commit
[UB] Fix two cases of UB in copy/pasted code from SmallVector.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 4 Aug 2015 03:52:52 +0000 (03:52 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 4 Aug 2015 03:52:52 +0000 (03:52 +0000)
commit25a74d705687776fb2bac34d518fd5ac4018ede3
tree9bb94a3c95cc8804514de873866c5d70cf80f4ed
parent0128dc8835c73dac96aa100bd5664b426c95c0a6
[UB] Fix two cases of UB in copy/pasted code from SmallVector.

We should really stop copying and pasting code around. =/

Found by UBSan.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243945 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTVector.h
include/clang/Analysis/Support/BumpVector.h