[llvm] da04e4a - [InstCombine] Use `auto *` instead of `auto` in `visitSIToFP`; NFC
Noah Goldstein via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 17 10:36:35 PDT 2024
Author: Noah Goldstein
Date: 2024-04-17T12:36:25-05:00
New Revision: da04e4afd3cae13581cac85688fbf10a5848655f
URL: https://github.com/llvm/llvm-project/commit/da04e4afd3cae13581cac85688fbf10a5848655f
DIFF: https://github.com/llvm/llvm-project/commit/da04e4afd3cae13581cac85688fbf10a5848655f.diff
LOG: [InstCombine] Use `auto *` instead of `auto` in `visitSIToFP`; NFC
Added:
Modified:
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
index d242d3f443def9..4537a47da2ced7 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
@@ -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;
More information about the llvm-commits
mailing list