This patch fixes a crash after rebuilding call AST of
an __unknown_anytype(...). In this case, we rebuild the
vararg function type specially to convert the call expression
to something that IRGen can handle. However, FunctionDecl
as rebuilt in RebuildUnknownAnyExpr::resolveDecl is bogus and
results in crash when accessing its params later on. This
patch fixes the crash by rebuilding the FunctionDecl to match
its new resolved type. rdar://
15297105.
(patch reapplied after lldb issue was fixed in r221660).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221691
91177308-0d34-0410-b5e6-
96231b3b80d8