diff options
author | Tilmann Scheller <t.scheller@samsung.com> | 2015-11-20 12:51:58 +0000 |
---|---|---|
committer | Tilmann Scheller <t.scheller@samsung.com> | 2015-11-20 12:51:58 +0000 |
commit | 1e929f97f67f4e7c98d8eaa0b87abee415dc35e5 (patch) | |
tree | 47b72b8e156156cabaa7c51f66f568bfda8a9190 /llvm/lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | bfd7ce01eae11563ec91fe4f28d338169b791b97 (diff) | |
download | bcm5719-llvm-1e929f97f67f4e7c98d8eaa0b87abee415dc35e5.tar.gz bcm5719-llvm-1e929f97f67f4e7c98d8eaa0b87abee415dc35e5.zip |
[FunctionAttrs] Remove redundant assignment.
Identified by the Clang static analyzer.
llvm-svn: 253661
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp index e699c5e0df5..9c33f995789 100644 --- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/llvm/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 |