]> granicus.if.org Git - clang/commit
fix rdar://6611778, a redefinition of an interface was causing an
authorChris Lattner <sabre@nondot.org>
Mon, 23 Feb 2009 22:00:08 +0000 (22:00 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Feb 2009 22:00:08 +0000 (22:00 +0000)
commit1829a6db2ec19e08061f0bb2f4c52a8e5e4efaf0
tree5e6ec0f846885aefd6f18f3dbdaa9bc6e38c8c47
parent60ff8ce5b2fda9c2a510f15d8b8504d0fc8c8e2f
fix rdar://6611778, a redefinition of an interface was causing an
assertion when the ivars and method list was reset into the existing
interface.  To fix this, mark decls as invalid when they are redefined,
and don't insert ivars/methods into invalid decls.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65340 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclObjC.cpp
test/Sema/anonymous-struct-union.c
test/Sema/nested-redef.c
test/SemaObjC/interface-1.m
test/SemaObjC/ivar-sem-check-1.m