[Sema] Handle errors during rewriteBuiltinFunctionDecl
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 21 Jul 2016 23:03:43 +0000 (23:03 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 21 Jul 2016 23:03:43 +0000 (23:03 +0000)
commite7287717cb86cf425ceb1f550a4162e49a8659d7
tree9672f5217fe83394f5d15547f4c48e4cb40aab0f
parente62dda20a4e716f444cf5272318cbfaa9888df91
[Sema] Handle errors during rewriteBuiltinFunctionDecl

rewriteBuiltinFunctionDecl can encounter errors when performing
DefaultFunctionArrayLvalueConversion.  These errors were not handled
which led to a null pointer dereference.

This fixes PR28651.

llvm-svn: 276352
clang/lib/Sema/SemaExpr.cpp
clang/test/Sema/builtins.cl