diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-12-17 16:18:04 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-12-17 16:18:04 +0000 |
commit | c7b5ed6da7410849b51ba9a9ea04d2cc7b720f48 (patch) | |
tree | 695f8eb3171e4f42a7a60fdee796440d57e39938 /include | |
parent | 320e153dbce9c7f57f22a59e4d162795059717e5 (diff) |
Swap the order of the condition and body of a do-while statement in
the AST, so that we visit them in source order. Fixes <rdar://problem/8779113>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/AST/Stmt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 01e0ae56c9..b3523a146c 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -868,7 +868,7 @@ public: /// DoStmt - This represents a 'do/while' stmt. /// class DoStmt : public Stmt { - enum { COND, BODY, END_EXPR }; + enum { BODY, COND, END_EXPR }; Stmt* SubExprs[END_EXPR]; SourceLocation DoLoc; SourceLocation WhileLoc; |