[PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.
David Majnemer via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 17 12:19:06 PST 2016
majnemer accepted this revision.
majnemer added a comment.
This revision is now accepted and ready to land.
LGTM with nits
================
Comment at: lib/Sema/SemaChecking.cpp:110
+ S.Diag(ValArg->getLocStart(), diag::err_typecheck_cond_expect_float)
+ << ValArg->getType() << ValArg->getSourceRange();
+ return true;
----------------
Can you change this `ValArg->getType()` to `Ty`?
https://reviews.llvm.org/D22334
More information about the cfe-commits
mailing list