Fix some cases were ArrayRefs were being passed by reference.

llvm-svn: 216527
This commit is contained in:
Craig Topper
2014-08-27 06:28:16 +00:00
parent 9fee0b7c0b
commit 3cb91b2ad1
4 changed files with 12 additions and 12 deletions

View File

@@ -3129,7 +3129,7 @@ void VFTableBuilder::dumpLayout(raw_ostream &Out) {
}
static bool setsIntersect(const llvm::SmallPtrSet<const CXXRecordDecl *, 4> &A,
const ArrayRef<const CXXRecordDecl *> &B) {
ArrayRef<const CXXRecordDecl *> B) {
for (ArrayRef<const CXXRecordDecl *>::iterator I = B.begin(), E = B.end();
I != E; ++I) {
if (A.count(*I))