[PATCH] D27304: [PATCH] [Sema][X86] Don't allow floating-point return types when SSE is disabled

2016-12-01 Thread Visoiu Mistrih Francis via Phabricator via cfe-commits
thegameg added a comment. In https://reviews.llvm.org/D27304#610697, @joerg wrote: > I think this is the absolutely wrong place to put such logic. It really can > not be anywhere but the backend. I am aware of this. But the way the backend informs the Diagnostics looks like a crash, and asks

[PATCH] D27304: [PATCH] [Sema][X86] Don't allow floating-point return types when SSE is disabled

2016-12-01 Thread Visoiu Mistrih Francis via Phabricator via cfe-commits
thegameg created this revision. thegameg added reviewers: craig.topper, majnemer. thegameg added a subscriber: cfe-commits. The following program hits a fatal_error in the X86 backend, when the program is compiled with -mno-sse or -mno-sse2, which is understandable due to the calling convention: