From: Tilmann Scheller Date: Fri, 20 Nov 2015 12:51:58 +0000 (+0000) Subject: [FunctionAttrs] Remove redundant assignment. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e4b48cdafbc189b212d355b6f0e3726e338c87e6;p=oota-llvm.git [FunctionAttrs] Remove redundant assignment. Identified by the Clang static analyzer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253661 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index e699c5e0df5..9c33f995789 100644 --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/lib/Transforms/IPO/FunctionAttrs.cpp @@ -486,8 +486,6 @@ determinePointerReadAttrs(Argument *A, return Attribute::None; } - Captures &= !CS.doesNotCapture(UseIndex); - // Since the optimizer (by design) cannot see the data flow corresponding // to a operand bundle use, these cannot participate in the optimistic SCC // analysis. Instead, we model the operand bundle uses as arguments in