diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-10-06 18:48:35 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-10-06 18:48:35 +0000 |
commit | 1bddf7e9c5f0243f0a2f65bc40b31e060ff260f3 (patch) | |
tree | 40ba8ab987ff610f41cd42ca7d1475be606e5727 /lib/Sema/SemaStmt.cpp | |
parent | fda4fede1bb84d4c371f63f77e6c3e5383952c55 (diff) |
Use the DeclStmt::decl_iterator to get the first decl in a DeclStmt instead of using DeclStmt::getDecl().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index df832b70dc..cb61ce969b 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -63,7 +63,7 @@ Sema::ActOnCompoundStmt(SourceLocation L, SourceLocation R, /*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); } } |