diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-11-14 12:46:07 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-11-14 12:46:07 +0000 |
commit | f2cad8633e46cce12fc3d77c0bd451ffd7264baf (patch) | |
tree | 2c51aac4a673b86d4cdc6cd9bdbdef2bedc4b0af /lib/AST/Stmt.cpp | |
parent | 37d682ac042d232d377a5f7bc6266149c82584a4 (diff) |
Don't require us to manually number the statements and expressions in StmtNodes.def. We don't need stable numbers yet, renumbering is a pain, and LAST_STMT had the wrong value anyway.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r-- | lib/AST/Stmt.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index 9c06807b3b..2308159f5d 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -29,9 +29,9 @@ static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) { // Intialize the table on the first use. Initialized = true; -#define STMT(N, CLASS, PARENT) \ - StmtClassInfo[N].Name = #CLASS; \ - StmtClassInfo[N].Size = sizeof(CLASS); +#define STMT(CLASS, PARENT) \ + StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ + StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS); #include "clang/AST/StmtNodes.def" return StmtClassInfo[E]; |