diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-07-24 00:10:38 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-07-24 00:10:38 +0000 |
| commit | 536f091f956715a82c2fb52b88e9406754535025 (patch) | |
| tree | 1dbbea9ed34f5ca340237482c8abaebf398b709c /clang/lib/Sema | |
| parent | 306a1f9721313a0f4c88c8d61f6fdad3caed18ed (diff) | |
| download | bcm5719-llvm-536f091f956715a82c2fb52b88e9406754535025.tar.gz bcm5719-llvm-536f091f956715a82c2fb52b88e9406754535025.zip | |
Be careful; even though we had a proper name at the beginning of
Sema::ActOnDeclarator doesn't mean that the Decl we ended up creating
has a useful name. <rdar://problem/8229910>
llvm-svn: 109296
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index cf5f98e0685..7360805f60f 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -2245,7 +2245,7 @@ Sema::HandleDeclarator(Scope *S, Declarator &D, // If this has an identifier and is not an invalid redeclaration or // function template specialization, add it to the scope stack. - if (Name && !(Redeclaration && New->isInvalidDecl())) + if (New->getDeclName() && !(Redeclaration && New->isInvalidDecl())) PushOnScopeChains(New, S); return DeclPtrTy::make(New); |

