Switching from std::vector to llvm::ArrayRef per post-commit review suggestion.

llvm-svn: 216463
This commit is contained in:
Aaron Ballman 2014-08-26 17:05:57 +00:00
parent d5fef8198b
commit d71a5c7277
1 changed files with 1 additions and 3 deletions

View File

@ -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());