diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-03-01 19:00:07 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-03-01 19:00:07 +0000 |
| commit | aff9c1a03353d09cf9ad97e98e1a952c48cba941 (patch) | |
| tree | 8ef02ed5313c2607b491c139261eaa687cbd36c6 /clang/lib/Sema/Sema.h | |
| parent | 12b02282d923f8d8f04d60ae0b943fd263d28fdb (diff) | |
| download | bcm5719-llvm-aff9c1a03353d09cf9ad97e98e1a952c48cba941.tar.gz bcm5719-llvm-aff9c1a03353d09cf9ad97e98e1a952c48cba941.zip | |
When instantiating a function-scoped enum, make sure that it and its
enumeration constants get placed into the local instantiation hash
table. Fixes PR6375.
llvm-svn: 97471
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index da192dd8879..4d017cada33 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -3433,7 +3433,7 @@ public: void InstantiatedLocal(const Decl *D, Decl *Inst) { Decl *&Stored = LocalDecls[D]; - assert(!Stored && "Already instantiated this local"); + assert((!Stored || Stored == Inst) && "Already instantiated this local"); Stored = Inst; } }; |

