diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-07-05 14:23:59 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-07-05 14:23:59 +0000 |
commit | c192b3dcffd5e672a2b2e1730e2440febb4fb192 (patch) | |
tree | ac719b5984165053bf83d71142e4d96b609b9784 /lib/Sema/SemaInit.cpp | |
parent | 2e645aa5697838f16ec570eb07c2bee7e13d0e0b (diff) |
Notes
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 821d7f64b2534..f0f7cb93d339d 100644 --- a/lib/Sema/SemaInit.cpp +++ b/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(); } //===----------------------------------------------------------------------===// |