aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-12-17 16:18:04 +0000
committerDouglas Gregor <dgregor@apple.com>2010-12-17 16:18:04 +0000
commitc7b5ed6da7410849b51ba9a9ea04d2cc7b720f48 (patch)
tree695f8eb3171e4f42a7a60fdee796440d57e39938 /include/clang
parent320e153dbce9c7f57f22a59e4d162795059717e5 (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/clang')
-rw-r--r--include/clang/AST/Stmt.h2
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;