[cfe-commits] [patch] Fix assertion with -Wmissing-noreturn in Obj-C method.

Jean-Daniel Dupas devlists at shadowlab.org
Wed Sep 7 05:12:27 PDT 2011


commit r138854 (Improve the diagnostic text for -Wmissing-noreturn to include the name of the function) does not handle Obj-C method case, and cause clang to assert when trying to emit the diagnostic due to a missing diagnostic argument.

This patch add Obj-C method handling (and update the diagnostic output to use either "function" or "method" accordingly).

Please, can someone have a look at it, and commit it if it is fine.
Thanks

-- Jean-Daniel



-------------- next part --------------
A non-text attachment was scrubbed...
Name: noreturn.patch
Type: application/octet-stream
Size: 1974 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110907/bf65c99d/attachment.obj>


More information about the cfe-commits mailing list