summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-10 13:43:55 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-10 13:43:55 +0000
commit1b93ddc95b39d8a32dc8605e07594b77f4cfa94d (patch)
tree0ac3f52ea52e66dde3bb744ca84d5955f442c505 /lib/Sema/SemaStmt.cpp
parentd6b36350630002c603302efc78bbeb39633ba694 (diff)
Reverting llvm::distance changes to use std::distance with iterators instead, per post-commit review feedback.
Replacing llvm::copy changes with SmallVector range-based construction which is a considerably cleaner approach. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r--lib/Sema/SemaStmt.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp
index 1fce1f1757..d726f5f16c 100644
--- a/lib/Sema/SemaStmt.cpp
+++ b/lib/Sema/SemaStmt.cpp
@@ -3349,8 +3349,7 @@ void Sema::ActOnCapturedRegionError() {
RecordDecl *Record = RSI->TheRecordDecl;
Record->setInvalidDecl();
- SmallVector<Decl*, 4> Fields;
- llvm::copy(Record->fields(), std::back_inserter(Fields));
+ SmallVector<Decl*, 4> Fields(Record->fields());
ActOnFields(/*Scope=*/0, Record->getLocation(), Record, Fields,
SourceLocation(), SourceLocation(), /*AttributeList=*/0);