Skip to content

Commit

Permalink
[InstCombine] Use auto * instead of auto in visitSIToFP; NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsteinn committed Apr 17, 2024
1 parent 8255360 commit da04e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ Instruction *InstCombinerImpl::visitSIToFP(CastInst &CI) {
if (Instruction *R = commonCastTransforms(CI))
return R;
if (isKnownNonNegative(CI.getOperand(0), SQ)) {
auto UI =
auto *UI =
CastInst::Create(Instruction::UIToFP, CI.getOperand(0), CI.getType());
UI->setNonNeg(true);
return UI;
Expand Down

0 comments on commit da04e4a

Please sign in to comment.