diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2014-11-11 16:56:21 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-11-11 16:56:21 +0000 |
commit | a29986c0b074e241c04aa1d7ad96067c8c2e9158 (patch) | |
tree | 70853182e1a8131b4031da9fd7304d83be3883a1 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | f1ce9c177f3f5d09f0b4a36770d87825a131b167 (diff) | |
download | llvm-a29986c0b074e241c04aa1d7ad96067c8c2e9158.zip llvm-a29986c0b074e241c04aa1d7ad96067c8c2e9158.tar.gz llvm-a29986c0b074e241c04aa1d7ad96067c8c2e9158.tar.bz2 |
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).
llvm-svn: 221691
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions