projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d38933
)
[Sema] Range-loopify InititializationSequence destructor. NFC intended.
author
Davide Italiano
<davide@freebsd.org>
Wed, 1 Jul 2015 21:51:58 +0000
(21:51 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Wed, 1 Jul 2015 21:51:58 +0000
(21:51 +0000)
llvm-svn: 241195
clang/lib/Sema/SemaInit.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaInit.cpp
b/clang/lib/Sema/SemaInit.cpp
index
821d7f6
..
f0f7cb9
100644
(file)
--- a/
clang/lib/Sema/SemaInit.cpp
+++ b/
clang/lib/Sema/SemaInit.cpp
@@
-5088,10
+5088,8
@@
void InitializationSequence::InitializeFrom(Sema &S,
}
InitializationSequence::~InitializationSequence() {
- for (SmallVectorImpl<Step>::iterator Step = Steps.begin(),
- StepEnd = Steps.end();
- Step != StepEnd; ++Step)
- Step->Destroy();
+ for (auto &S : Steps)
+ S.Destroy();
}
//===----------------------------------------------------------------------===//