Skip to content

Commit

Permalink
Only add the EH state insertion pass on 32-bit Windows
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238612 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rnk committed May 29, 2015
1 parent 5760c5f commit 38a2e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Target/X86/X86TargetMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ bool X86PassConfig::addILPOpts() {
}

bool X86PassConfig::addPreISel() {
// Only add this pass for 32-bit x86.
// Only add this pass for 32-bit x86 Windows.
Triple TT(TM->getTargetTriple());
if (TT.getArch() == Triple::x86)
if (TT.isOSWindows() && TT.getArch() == Triple::x86)
addPass(createX86WinEHStatePass());
return true;
}
Expand Down

0 comments on commit 38a2e49

Please sign in to comment.