]> granicus.if.org Git - clang/commit
[Sema] Check if a builtin is FunctionPrototype().
authorDavide Italiano <davide@freebsd.org>
Sat, 25 Apr 2015 20:20:04 +0000 (20:20 +0000)
committerDavide Italiano <davide@freebsd.org>
Sat, 25 Apr 2015 20:20:04 +0000 (20:20 +0000)
commitca305f5bb0893e41a5e5695d1dabe50853dfd93d
treed8fc8f120a492e901adf390fae328a58a462c7b6
parentec83e3696851d0ed774332f524e119746cc7757a
[Sema] Check if a builtin is FunctionPrototype().

Don't assume it's always is. This prevents a crash in Sema while
trying to merge return type for a builtin w/out function prototype.

PR: 23086
Differential Revision: http://reviews.llvm.org/D9235
Reviewed by: rsmith

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235806 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/crash-invalid-builtin.c [new file with mode: 0644]