summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-08-26 17:05:57 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-08-26 17:05:57 +0000
commitd71a5c727716e542faf2494cf16fe285883d7cfc (patch)
tree4c3331a977281d94692eedf2673f18fdf63d29f1
parentd5fef8198b95927570659a5e03c0c7c2a2936076 (diff)
downloadbcm5719-llvm-d71a5c727716e542faf2494cf16fe285883d7cfc.tar.gz
bcm5719-llvm-d71a5c727716e542faf2494cf16fe285883d7cfc.zip
Switching from std::vector to llvm::ArrayRef per post-commit review suggestion.
llvm-svn: 216463
-rw-r--r--clang/unittests/AST/ASTVectorTest.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/unittests/AST/ASTVectorTest.cpp b/clang/unittests/AST/ASTVectorTest.cpp
index 23c52be5b12..4b5d569a808 100644
--- a/clang/unittests/AST/ASTVectorTest.cpp
+++ b/clang/unittests/AST/ASTVectorTest.cpp
@@ -18,8 +18,6 @@
#include "gtest/gtest.h"
-#include <vector>
-
using namespace clang;
namespace clang {
@@ -73,7 +71,7 @@ TEST_F(ASTVectorTest, InsertEmpty) {
// Ensure no pointer overflow when inserting empty range
int Values[] = { 0, 1, 2, 3 };
- std::vector<int> IntVec(Values, Values + 4);
+ ArrayRef<int> IntVec(Values);
auto I = V.insert(Ctxt, V.begin(), IntVec.begin(), IntVec.begin());
ASSERT_EQ(V.begin(), I);
ASSERT_TRUE(V.empty());
OpenPOWER on IntegriCloud