mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
duncan points out the EH selector values are signed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82245 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c19418f31f
commit
6ba2e87061
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user