Skip to content

Commit 462853d

Browse files
committed
Use paramHasAttr
1 parent 74f7931 commit 462853d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/InlineFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ static void AddParamAndFnBasicAttributes(const CallBase &CB,
13981398
if (!Arg)
13991399
continue;
14001400

1401-
if (NewInnerCB->getParamAttr(I, Attribute::ByVal).isValid())
1401+
if (NewInnerCB->paramHasAttr(I, Attribute::ByVal))
14021402
// It's unsound to propagate memory attributes to byval arguments.
14031403
// Even if CalledFunction doesn't e.g. write to the argument,
14041404
// the call to NewInnerCB may write to its by-value copy.

0 commit comments

Comments
 (0)