From 0e14a56d35377b4568d11efad3d3af128a28705d Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 9 Jun 2006 06:24:42 +0000 Subject: [PATCH] Minor compilation speed improvement. llvm-svn: 28736 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 6f20b9cf26cc..3236991c81b4 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -3413,8 +3413,8 @@ X86TargetLowering::LowerFORMAL_ARGUMENTS(SDOperand Op, SelectionDAG &DAG) { MachineFunction &MF = DAG.getMachineFunction(); const Function* Fn = MF.getFunction(); if (Fn->hasExternalLinkage() && - Fn->getName() == "main" && - Subtarget->TargetType == X86Subtarget::isCygwin) + Subtarget->TargetType == X86Subtarget::isCygwin && + Fn->getName() == "main") MF.getInfo()->setForceFramePointer(true); unsigned CC = cast(Op.getOperand(1))->getValue();