Page MenuHomePhabricator

Fix for internal compiler error when calling __builtin_signbit with invalid arguments
Needs ReviewPublic

Authored by jseba on Aug 15 2017, 4:21 PM.



Clang has had a regression since version 3.8 where calls to __builtin_signbit (and friends signbitf & signbitl) without passing any arguments would cause it to segfault because it didn't abort compilation, even though it would properly flag the function call as having too few arguments passed in. This patch fixes the issue by including signbit in the checks for floating point parameters during semantic checks for builtin functions, same as isnan or isinf.

This addresses and

Diff Detail

Event Timeline

jseba created this revision.Aug 15 2017, 4:21 PM