diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-10-06 20:58:11 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-10-06 20:58:11 +0000 |
| commit | f34afeed9a0112bf31fee185b6c80556111d3834 (patch) | |
| tree | 1fc83a8c90f90e48aa35dc9f036c8f1f75089ac0 /lib/CodeGen/CodeGenModule.cpp | |
| parent | 53061c842d287b73500c47141f0059792631ed89 (diff) | |
When processing Objective-C foreach statements, first check to see if the statement has a DeclStmt with a single Decl. Afterwards, use DeclStmt::getSolitaryDecl() to access that Decl (thus avoiding an assertion being triggered). These changes remove an unneeded use of ScopedDecl::getNextDeclarator() and DeclStmt::getDecl().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
