diff options
| author | Vedant Kumar <vsk@apple.com> | 2018-07-06 21:06:21 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2018-07-06 21:06:21 +0000 |
| commit | 71c7c43695f33b763b4a5c56b2c960dc4b28007c (patch) | |
| tree | b1216197189574b2f98094d1ea432c603f235223 /clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp | |
| parent | 8a3680852e41a10d96fe301b29c856fb63904eda (diff) | |
| download | bcm5719-llvm-71c7c43695f33b763b4a5c56b2c960dc4b28007c.tar.gz bcm5719-llvm-71c7c43695f33b763b4a5c56b2c960dc4b28007c.zip | |
Fix DIExpression::ExprOperand::appendToVector
appendToVector used the wrong overload of SmallVector::append, resulting
in it appending the same element to a vector `getSize()` times. This did
not cause a problem when initially committed because appendToVector was
only used to append 1-element operands.
This changes appendToVector to use the correct overload of append().
Testing: ./unittests/IR/IRTests --gtest_filter='*DIExpressionTest*'
llvm-svn: 336466
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp')
0 files changed, 0 insertions, 0 deletions

