[llvm] Inline: Fix handling of byval using non-alloca addrspace (PR #97306)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 1 09:03:07 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 0d88f662ff4db7e78a6c48db79ef62c5228d5f2a c4d62fcf3e865f0b33d70f70a7b6b18e4a2ba54e -- llvm/lib/Transforms/Utils/InlineFunction.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index cfcc658f74..036527c797 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -1674,9 +1674,9 @@ static Value *HandleByValArgument(Type *ByValType, Value *Arg,
if (ByValAlignment)
Alignment = std::max(Alignment, *ByValAlignment);
- AllocaInst *NewAlloca = new AllocaInst(
- ByValType, Arg->getType()->getPointerAddressSpace(), nullptr,
- Alignment, Arg->getName());
+ AllocaInst *NewAlloca =
+ new AllocaInst(ByValType, Arg->getType()->getPointerAddressSpace(),
+ nullptr, Alignment, Arg->getName());
NewAlloca->insertBefore(Caller->begin()->begin());
IFI.StaticAllocas.push_back(NewAlloca);
``````````
</details>
https://github.com/llvm/llvm-project/pull/97306
More information about the llvm-commits
mailing list