diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2024-11-08 11:32:34 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2024-11-08 16:45:31 +0000 |
commit | d686ce931cab72612a9e1ada9fe99d65e11a32a3 (patch) | |
tree | a39e5efee92224f37149c11ea680e3680457d110 /contrib/llvm-project/llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 8838f3c32ac0ebcb8b20863f8c455375039a505e (diff) | |
parent | efdccd8358633400f927c74be0f7969bda1b3775 (diff) |
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Transforms/Utils/InlineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/Transforms/Utils/InlineFunction.cpp b/contrib/llvm-project/llvm/lib/Transforms/Utils/InlineFunction.cpp index 68696789530f..fda1c22cc1fb 100644 --- a/contrib/llvm-project/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/contrib/llvm-project/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -1395,7 +1395,7 @@ static void AddParamAndFnBasicAttributes(const CallBase &CB, if (!Arg) continue; - if (AL.hasParamAttr(I, Attribute::ByVal)) + if (NewInnerCB->paramHasAttr(I, Attribute::ByVal)) // It's unsound to propagate memory attributes to byval arguments. // Even if CalledFunction doesn't e.g. write to the argument, // the call to NewInnerCB may write to its by-value copy. |