diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2013-07-06 02:13:46 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2013-07-06 02:13:46 +0000 |
| commit | c371db6b1dac65d61c8952b6198cc970a9e25ee4 (patch) | |
| tree | 0a3d958bc96dd3405509a18e130f178838d0111b /lib/CodeGen/CGExpr.cpp | |
| parent | 6fa375376ba320544eb2f7064f7fa718e6086c44 (diff) | |
| download | clang-c371db6b1dac65d61c8952b6198cc970a9e25ee4.tar.gz clang-c371db6b1dac65d61c8952b6198cc970a9e25ee4.tar.bz2 clang-c371db6b1dac65d61c8952b6198cc970a9e25ee4.tar.xz | |
Sema: Fix a crash when main is redeclared as a function-template.
This boils down to us sending invalid function decls to
CheckFunctionDeclaration becauswe we did not consider that CheckMain
could cause the decl to be invalid. Instead, interogate the new decl's
main-validity and *then* send it over to get CheckFunctionDeclaration'd
if it was still valid after calling CheckMain.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
