fix a major regression from my patch this afternoon

llvm-svn: 23347
This commit is contained in:
Chris Lattner 2005-09-14 06:06:45 +00:00
parent 1c8d6ce015
commit b42e962d23
1 changed files with 1 additions and 0 deletions

View File

@ -1157,6 +1157,7 @@ static void EmitSpecialCodeForMain(MachineBasicBlock *BB,
void ISel::EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) {
// If this is main, emit special code for main.
MachineBasicBlock *BB = MF.begin();
if (Fn.hasExternalLinkage() && Fn.getName() == "main")
EmitSpecialCodeForMain(BB, MF.getFrameInfo());
}