aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-07-06 02:13:46 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-07-06 02:13:46 +0000
commit027f9c4026a8da9eb2714ae381f1966459dc9839 (patch)
tree741d8b308c982d76f4c423b2b202636949a9aa0d /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent574d521c85ed1fd00f751bf45cf0648db25dc088 (diff)
downloadllvm-027f9c4026a8da9eb2714ae381f1966459dc9839.zip
llvm-027f9c4026a8da9eb2714ae381f1966459dc9839.tar.gz
llvm-027f9c4026a8da9eb2714ae381f1966459dc9839.tar.bz2
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. llvm-svn: 185745
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions