Don't advance the statement iterator after we've deallocated the statement

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62306 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp
index 586e8f9..74ed6e9 100644
--- a/lib/AST/Stmt.cpp
+++ b/lib/AST/Stmt.cpp
@@ -43,8 +43,9 @@
 }
 
 void Stmt::DestroyChildren(ASTContext& C) {
-  for (child_iterator I = child_begin(), E = child_end(); I !=E; ++I)
-    if (Stmt* Child = *I) Child->Destroy(C);
+  for (child_iterator I = child_begin(), E = child_end(); I !=E; ) {
+    if (Stmt* Child = *I++) Child->Destroy(C);
+  }
 }
 
 void Stmt::Destroy(ASTContext& C) {