This fixes bug 23086.
__builtin_isnan(...) causes clang to crash in sema. The proposed patch is an attempt to fix.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Sema/SemaDecl.cpp | ||
---|---|---|
2988–2991 |
Perhaps the root cause of the problem is that we set the wrong value for hasPrototype up on line 1752? We should be checking whether the builtin type is in fact a FunctionProtoType rather than just assuming it is. |
Comment Actions
Yes, thanks. That actually worked and passes the test suite.
Does the check look fine to you?
Comment Actions
Yes, this seems like a reasonable approach (please also include the testcase from your previous patch).
Perhaps the root cause of the problem is that we set the wrong value for hasPrototype up on line 1752? We should be checking whether the builtin type is in fact a FunctionProtoType rather than just assuming it is.