[cfe-commits] r43770 - /cfe/trunk/include/clang/AST/Stmt.h

Steve Naroff snaroff at apple.com
Tue Nov 6 11:37:10 PST 2007


Author: snaroff
Date: Tue Nov  6 13:37:09 2007
New Revision: 43770

URL: http://llvm.org/viewvc/llvm-project?rev=43770&view=rev
Log:

Fix a "basic" bug that resulted in a bogus SourceLocation.

Off hand, I don't know why this change makes a difference (I thought the two constructor idioms were equivalent).

Modified:
    cfe/trunk/include/clang/AST/Stmt.h

Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=43770&r1=43769&r2=43770&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Tue Nov  6 13:37:09 2007
@@ -748,11 +748,12 @@
   ObjcAtTryStmt(SourceLocation atTryLoc, Stmt *atTryStmt, 
                 Stmt *atCatchStmt, 
                 Stmt *atFinallyStmt)
-  : Stmt(ObjcAtTryStmtClass), AtTryLoc(atTryLoc) {
+  : Stmt(ObjcAtTryStmtClass) {
       SubStmts[TRY] = atTryStmt;
       SubStmts[CATCH] = atCatchStmt;
       SubStmts[FINALLY] = atFinallyStmt;
       SubStmts[END_TRY] = NULL;
+      AtTryLoc = atTryLoc;
     }
     
   const Stmt *getTryBody() const { return SubStmts[TRY]; }





More information about the cfe-commits mailing list