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 | db47ee203a9eecfbeff427b4f20982b2c41708fa (patch) | |
tree | a241126e05f0e5d781fa23c1df130e907939bc9c /llvm/lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | 483e1ce16e5bbb651aac7b8a217c881f0872ccaa (diff) | |
download | bcm5719-llvm-db47ee203a9eecfbeff427b4f20982b2c41708fa.tar.gz bcm5719-llvm-db47ee203a9eecfbeff427b4f20982b2c41708fa.zip |
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.
llvm-svn: 41964
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
0 files changed, 0 insertions, 0 deletions