]> granicus.if.org Git - clang/commit
Fix <rdar://problem/6329769> [sema] crash on duplication definition of interface...
authorSteve Naroff <snaroff@apple.com>
Tue, 18 Nov 2008 19:15:30 +0000 (19:15 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 18 Nov 2008 19:15:30 +0000 (19:15 +0000)
commitcfe8bf31ad61a16458d5970734d4a300a7bd9b0a
treec54aef5163106ff3e0b43ac0184eb4220d76ae08
parente4d378815364255b002b4295162c290598fc899c
Fix <rdar://problem/6329769> [sema] crash on duplication definition of interface with protocols.

As soon as we detect duplicate interfaces, discontinue further semantic checks (returning the original interface).

This is now consistent with how we handle protocols (and less error prone in general).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59541 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclObjC.cpp
test/SemaObjC/alias-test-2.m
test/SemaObjC/check-dup-objc-decls-1.m