]> granicus.if.org Git - clang/commit
GCC 4.4 warns that Receiver may be used uninitialized in this function.
authorDuncan Sands <baldrick@free.fr>
Wed, 20 Oct 2010 08:21:16 +0000 (08:21 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 20 Oct 2010 08:21:16 +0000 (08:21 +0000)
commit54bd4577762228fdca4367dbc3af5e13e7f21389
tree3a7ab368e01ba39d81ebb374b22d3ee2cd63d4e7
parentaa56a66abb61e9f42b48ae88e43328aba10c9148
GCC 4.4 warns that Receiver may be used uninitialized in this function.
As far as I can see, gcc is right to think this!  The following change
will cause a nice segfault rather than undefined behaviour if this case
occurs.  Someone who understands what this code is supposed to do should
probably take a proper look.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116917 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Rewrite/RewriteObjC.cpp