[Sema,X86] Add explicit check to ensure that builtins that require x86-64 target...
authorCraig Topper <craig.topper@gmail.com>
Thu, 21 Jul 2016 07:38:43 +0000 (07:38 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 21 Jul 2016 07:38:43 +0000 (07:38 +0000)
commitfe22d59a8424dd63184fa834f5915f9fdf2ec4ec
treeda732b15d600d8b4037c52c852949768148f19a3
parent45db56c375a2f085b6eceb476349cd177bdff7a4
[Sema,X86] Add explicit check to ensure that builtins that require x86-64 target throw an error if used on 32-bit target.

If these builtins are allowed to go through on a 32-bit target they will fire assertions in the backend.

Fixes PR28635.

llvm-svn: 276250
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/builtins-x86-disabled.c [new file with mode: 0644]