forked from OSchip/llvm-project
fix a major regression from my patch this afternoon
llvm-svn: 23347
This commit is contained in:
parent
1c8d6ce015
commit
b42e962d23
|
@ -1157,6 +1157,7 @@ static void EmitSpecialCodeForMain(MachineBasicBlock *BB,
|
||||||
|
|
||||||
void ISel::EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) {
|
void ISel::EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) {
|
||||||
// If this is main, emit special code for main.
|
// If this is main, emit special code for main.
|
||||||
|
MachineBasicBlock *BB = MF.begin();
|
||||||
if (Fn.hasExternalLinkage() && Fn.getName() == "main")
|
if (Fn.hasExternalLinkage() && Fn.getName() == "main")
|
||||||
EmitSpecialCodeForMain(BB, MF.getFrameInfo());
|
EmitSpecialCodeForMain(BB, MF.getFrameInfo());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue