[cfe-commits] r57196 - /cfe/trunk/lib/Sema/SemaStmt.cpp
Ted Kremenek
kremenek at apple.com
Mon Oct 6 11:48:35 PDT 2008
Author: kremenek
Date: Mon Oct 6 13:48:35 2008
New Revision: 57196
URL: http://llvm.org/viewvc/llvm-project?rev=57196&view=rev
Log:
Use the DeclStmt::decl_iterator to get the first decl in a DeclStmt instead of using DeclStmt::getDecl().
Modified:
cfe/trunk/lib/Sema/SemaStmt.cpp
Modified: cfe/trunk/lib/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmt.cpp?rev=57196&r1=57195&r2=57196&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmt.cpp Mon Oct 6 13:48:35 2008
@@ -63,7 +63,7 @@
/*empty*/;
if (i != NumElts) {
- ScopedDecl *D = cast<DeclStmt>(Elts[i])->getDecl();
+ ScopedDecl *D = *cast<DeclStmt>(Elts[i])->decl_begin();
Diag(D->getLocation(), diag::ext_mixed_decls_code);
}
}
More information about the cfe-commits
mailing list