[llvm-branch-commits] [llvm-branch] r83118 - /llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Bill Wendling
isanbard at gmail.com
Tue Sep 29 16:39:38 PDT 2009
Author: void
Date: Tue Sep 29 18:39:37 2009
New Revision: 83118
URL: http://llvm.org/viewvc/llvm-project?rev=83118&view=rev
Log:
Don't re-add the register if it's already in there.
Modified:
llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
Modified: llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp?rev=83118&r1=83117&r2=83118&view=diff
==============================================================================
--- llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp (original)
+++ llvm/branches/eh-experiment/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp Tue Sep 29 18:39:37 2009
@@ -4002,9 +4002,9 @@
// TODO: Figure out if we want to do this like this.
AddCatchInfo(I, MMI, CurMBB);
- // FIXME: Mark exception selector register as live in. Hack for PR1508.
+ // FIXME: Mark exception selector register as live in. Hack for PR1508.
unsigned Reg = TLI.getExceptionSelectorRegister();
- if (Reg) CurMBB->addLiveIn(Reg);
+ if (Reg && !CurMBB->isLiveIn(Reg)) CurMBB->addLiveIn(Reg);
// Insert the EHPERSONALITY instruction.
SDVTList VTs = DAG.getVTList(TLI.getPointerTy(), MVT::Other);
More information about the llvm-branch-commits
mailing list