[llvm] Correctly set pointer bit for aggregate values in SelectionDAGBuilder to fix CCIfPtr (PR #70554)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 3 13:48:59 PDT 2023
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 fcc26bad82e190e1ec09bc6fe76ea320f5ffeeeb efeef7be3ca8ce8d542b8b266cf79bf98b4b5900 -- llvm/include/llvm/CodeGen/Analysis.h llvm/lib/CodeGen/Analysis.cpp llvm/lib/CodeGen/SelectionDAG/FastISel.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/CodeGen/TargetLoweringBase.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 3d72f94c0a25..e19f5cfbfdcf 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -1713,7 +1713,7 @@ void llvm::GetReturnInfo(CallingConv::ID CC, Type *ReturnType,
SmallVectorImpl<ISD::OutputArg> &Outs,
const TargetLowering &TLI, const DataLayout &DL) {
SmallVector<EVT, 4> ValueVTs;
- SmallVector<Type*, 4> ValueTys;
+ SmallVector<Type *, 4> ValueTys;
ComputeValueVTs(TLI, DL, ReturnType, ValueVTs, /*MemVTs=*/nullptr, &ValueTys);
unsigned NumValues = ValueVTs.size();
if (NumValues == 0) return;
@@ -1749,7 +1749,8 @@ void llvm::GetReturnInfo(CallingConv::ID CC, Type *ReturnType,
if (ValueTys[j]->isPointerTy()) {
Flags.setPointer();
- Flags.setPointerAddrSpace(cast<PointerType>(ValueTys[j])->getAddressSpace());
+ Flags.setPointerAddrSpace(
+ cast<PointerType>(ValueTys[j])->getAddressSpace());
}
// Propagate extension type if any
``````````
</details>
https://github.com/llvm/llvm-project/pull/70554
More information about the llvm-commits
mailing list