diff options
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); } } |