[cfe-commits] [PATCH] Fix for bug 11917 (crash in SemaInit.cpp)
Dmitri Gribenko
gribozavr at gmail.com
Thu Feb 9 04:35:46 PST 2012
On Thu, Feb 9, 2012 at 4:42 AM, Aaron Ballman <aaron at aaronballman.com> wrote:
> I happened to notice that Remi Gacogne (rgacogne-free at valombre.net)
> submitted this bug report with a patch in it. I've added a test case
> and created the patch file, and am just looking for a review before I
> commit. The patch looks solid to me, and it does rectify the crash.
> But a second pair of eye never hurts.
The patch adds DOS-style newlines to test/Sema/init.c that contained
only UNIX-style newlines. Also, I think you could use
dyn_cast_or_null.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-commits
mailing list