summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-21 07:06:49 +0000
committerChris Lattner <sabre@nondot.org>2008-07-21 07:06:49 +0000
commitca1e8485880e526cee02abef6c9eef5abb9dd22a (patch)
tree38a3a88c1e9245990824d6e5d77767558a8fb8be /clang/lib/CodeGen/CodeGenModule.cpp
parent87899be4cc6ea93329f34e3c768d53950c8d4714 (diff)
downloadbcm5719-llvm-ca1e8485880e526cee02abef6c9eef5abb9dd22a.tar.gz
bcm5719-llvm-ca1e8485880e526cee02abef6c9eef5abb9dd22a.zip
Switch initialization of the protocol list for an interface decl to use
the standard "set these as the list of protocols" interface instead of a strange "set this as the size and then set each one to the value" interface. The problem with the later is that it a) is completely different from everything else, b) is awkward, and c) doesn't handle the case when a referenced protocol is invalid: it set it to null. This meant that all clients downstream would have to handle null protocols in the protocol list, and empirically they didn't. Fix this by not setting invalid protocols in the referenced protocol list, fixing the crash on test/Sema/objc-interface-1.m While I'm at it, clean up some locations so that we produce: t.m:1:25: error: cannot find interface declaration for 'NSObject', superclass of 'NSWhatever' @interface NSWhatever : NSObject <NSCopying> ~~~~~~~~~~~~~~~~~~~~~ ^ instead of: t.m:1:1: error: cannot find interface declaration for 'NSObject', superclass of 'NSWhatever' @interface NSWhatever : NSObject <NSCopying> ^ llvm-svn: 53846
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud