[llvm] [llvm] Replace uses of Type::getPointerTo() (NFC) (PR #110163)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 13:32:26 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 97f0f5b574d36e3252966c455cfb3a687b4f5325 59de3a2a07b8f12b53d36e3e38389a5890882abf --extensions cpp -- llvm/lib/CodeGen/GlobalISel/CallLowering.cpp llvm/lib/Target/BPF/BPFCheckAndAdjustIR.cpp llvm/lib/Transforms/IPO/LowerTypeTests.cpp llvm/lib/Transforms/IPO/OpenMPOpt.cpp llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
index 3e25e2a74d..08ee6169ec 100644
--- a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
@@ -1034,8 +1034,7 @@ void CallLowering::insertSRetStores(MachineIRBuilder &MIRBuilder, Type *RetTy,
unsigned NumValues = SplitVTs.size();
Align BaseAlign = DL.getPrefTypeAlign(RetTy);
unsigned AS = DL.getAllocaAddrSpace();
- LLT OffsetLLTy = getLLTForType(
- *DL.getIndexType(RetTy->getContext(), AS), DL);
+ LLT OffsetLLTy = getLLTForType(*DL.getIndexType(RetTy->getContext(), AS), DL);
MachinePointerInfo PtrInfo(AS);
``````````
</details>
https://github.com/llvm/llvm-project/pull/110163
More information about the llvm-commits
mailing list