X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTransforms%2FScalar%2FSink.cpp;h=7c0ac7aa6faec4225547e3d1c8b56b0510ad9e5e;hb=cdbb6a49e2f29b3cb3354810a36d240f6a64a972;hp=f6ccd999ea008273d625e2f81738f6d4a3ee82ea;hpb=e6a5192692bb99878f8902b9f75644a13d57a633;p=oota-llvm.git diff --git a/lib/Transforms/Scalar/Sink.cpp b/lib/Transforms/Scalar/Sink.cpp index f6ccd999ea0..7c0ac7aa6fa 100644 --- a/lib/Transforms/Scalar/Sink.cpp +++ b/lib/Transforms/Scalar/Sink.cpp @@ -169,7 +169,7 @@ static bool isSafeToMove(Instruction *Inst, AliasAnalysis *AA, return false; } - if (isa(Inst) || isa(Inst)) + if (isa(Inst) || isa(Inst) || Inst->isEHPad()) return false; // Convergent operations cannot be made control-dependent on additional