Skip to content

Commit 41b5507

Browse files
authored
DAG: Change round-mode operand type to i32 for FPTRUNC_ROUND (llvm#106424)
We need this immediate type to be consistent. This is the pre-commit for llvm#105761
1 parent 4b84288 commit 41b5507

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6957,8 +6957,7 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
69576957
SDValue Result;
69586958
Result = DAG.getNode(
69596959
ISD::FPTRUNC_ROUND, sdl, VT, getValue(I.getArgOperand(0)),
6960-
DAG.getTargetConstant((int)*RoundMode, sdl,
6961-
TLI.getPointerTy(DAG.getDataLayout())));
6960+
DAG.getTargetConstant((int)*RoundMode, sdl, MVT::i32));
69626961
setValue(&I, Result);
69636962

69646963
return;

0 commit comments

Comments
 (0)