diff options
| author | Steve Naroff <snaroff@apple.com> | 2007-09-14 22:20:54 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2007-09-14 22:20:54 +0000 |
| commit | 74216648a51e3aee7e59c27e1f1e5c132c024830 (patch) | |
| tree | d291962ffe24c393d8687e1c93b4df85ab5155e5 /CodeGen/CodeGenTypes.cpp | |
| parent | b04a02184c5ec8745ea8a639fbdff2293fe0ae96 (diff) | |
Several improvement to Sema::ParseRecordBody()...
- Adding a safer prologue. The previous prologue would accept a null and therefore assume we had an interface (which was incorrect).
- Fixed FieldDecl's classof method. This allowed me to simplify some unnecessary casting.
- When diagnosing errors, make sure the FieldDecl/EnclosingDecl are marked as invalid. In addition, don't delete the field...rather, add all fields to the enclosing decl. Memory management can/should be done elsewhere. This code was never "upgraded" to the recently added invalid decl strategy.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenTypes.cpp')
0 files changed, 0 insertions, 0 deletions
