]> granicus.if.org Git - clang/commit
This patch fixes a crash after rebuilding call AST of
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 11 Nov 2014 16:56:21 +0000 (16:56 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 11 Nov 2014 16:56:21 +0000 (16:56 +0000)
commitd45e22102f8702a5280f100ebf0c503d65590321
treef659f7d69dbeca02c27afb68e41ab10a39d2ca7b
parent3b5935e251c9207fe3540d64398917cc37994be5
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
lib/Sema/SemaExpr.cpp
test/CodeGenCXX/unknown-anytype.cpp