Re: [PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.

2016-08-26 Thread Mayur Pandey via cfe-commits
mayurpandey updated this revision to Diff 69354. mayurpandey added a comment. Hi, Updated the patch to handle the second crash. __builtin_signbit("1") was crashing. I am not fully sure whether the check : if (!Ty->isRealFloatingType()) is correct. Please review and let me know whether it is f

Re: [PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.

2016-08-30 Thread Mayur Pandey via cfe-commits
mayurpandey updated this revision to Diff 69674. mayurpandey added a comment. Hi, Updated the patch to add a template based testcase. As suggested by you, I tried updating the error diagnostic to err_typecheck_cond_expect_float and to issue diagnostic in similar fashion to err_typecheck_cond_ex

Re: [PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.

2016-09-07 Thread Mayur Pandey via cfe-commits
ping. On Tue, Aug 30, 2016 at 7:32 PM, Mayur Pandey wrote: > mayurpandey updated this revision to Diff 69674. > mayurpandey added a comment. > > Hi, > > Updated the patch to add a template based testcase. As suggested by you, I > tried updating the error diagnostic to err_typecheck_cond_expect_f

[PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.

2016-11-17 Thread Mayur Pandey via cfe-commits
mayurpandey updated this revision to Diff 78390. mayurpandey added a comment. Hi, Updated the patch to incorporate the review comments. I had missed adding ValArg->getType() when emitting the diagnostic which was cauing the crash. Testing done, no regressions. Thanks, Mayur https://reviews.l

[PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.

2016-11-17 Thread Mayur Pandey via cfe-commits
mayurpandey updated this revision to Diff 78471. mayurpandey added a comment. Hi, Updated the patch. Can you please commit it on my behalf as I don't have commit access. Thanks, Mayur https://reviews.llvm.org/D22334 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaChecking.

[PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.

2016-11-01 Thread Mayur Pandey via cfe-commits
mayurpandey added a comment. Hi David, The crash that we see can be seen with other diagnostics for builtin if we use the diagnostic format you suggested. I tried the same thing with err_builtin_annotation_first_arg. The same crash can be seen. So shall I fix this crash with this bug or file a

Re: [PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.

2016-07-23 Thread Mayur Pandey via cfe-commits
mayurpandey added a comment. The crash on : int x = __builtin_signbit("1"); is not a side effect of this patch. It was failing prior to the patch as well. I can work on a new patch for this crash. https://reviews.llvm.org/D22334 ___ cfe-commits ma

[PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.

2016-07-13 Thread Mayur Pandey via cfe-commits
mayurpandey created this revision. mayurpandey added reviewers: george.burgess.iv, hfinkel. mayurpandey added a subscriber: cfe-commits. clang was crashing when no argument was provided to __builtin_signbit function. Added a check to handle the error. No regressions on testing. http://reviews.ll