Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 73a482f

Browse files
author
Tilmann Scheller
committed
Revert "[FunctionAttrs] Remove redundant assignment."
This reverts r253661. Turns out that the assignment is not redundant (despite the Clang static analyzer claiming the opposite). The variable is being used by the lambda function AddUsersToWorklistIfCapturing(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253696 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent e0a7f28 commit 73a482f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Transforms/IPO/FunctionAttrs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,8 @@ determinePointerReadAttrs(Argument *A,
486486
return Attribute::None;
487487
}
488488

489+
Captures &= !CS.doesNotCapture(UseIndex);
490+
489491
// Since the optimizer (by design) cannot see the data flow corresponding
490492
// to a operand bundle use, these cannot participate in the optimistic SCC
491493
// analysis. Instead, we model the operand bundle uses as arguments in

0 commit comments

Comments
 (0)