diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-18 18:34:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-18 18:34:29 +0000 |
commit | e133923abe2f90eeab59fc00b65430a558fc810d (patch) | |
tree | deae9c5176eea7ca376a9f1b30314746d7602caf /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | |
parent | 42bb0c1f8fc4ef1093b79351d134442915592655 (diff) | |
download | bcm5719-llvm-e133923abe2f90eeab59fc00b65430a558fc810d.tar.gz bcm5719-llvm-e133923abe2f90eeab59fc00b65430a558fc810d.zip |
duncan points out the EH selector values are signed.
llvm-svn: 82245
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index ff41458bea4..ff9829214ce 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -4024,7 +4024,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { MVT::SimpleValueType VT = (Intrinsic == Intrinsic::eh_selector_i32 ? MVT::i32 : MVT::i64); if (Op.getValueType().getSimpleVT() < VT) - Op = DAG.getNode(ISD::ZERO_EXTEND, dl, VT, Op); + Op = DAG.getNode(ISD::SIGN_EXTEND, dl, VT, Op); else if (Op.getValueType().getSimpleVT() < VT) Op = DAG.getNode(ISD::TRUNCATE, dl, VT, Op); |