]> granicus.if.org Git - llvm/commit
"Use" lambda captures which are otherwise only used in asserts. NFC
authorDavid L. Jones <dlj@google.com>
Fri, 13 Jan 2017 21:02:41 +0000 (21:02 +0000)
committerDavid L. Jones <dlj@google.com>
Fri, 13 Jan 2017 21:02:41 +0000 (21:02 +0000)
commitb9565c5ed610fcc2176ee0da93b0326787bf2977
tree3259d0ec9cc6bae6440fe9f042d94c0fd7f48cbe
parentf53524b4f64eea25aec919f4a0147b1cd844940d
"Use" lambda captures which are otherwise only used in asserts. NFC

Summary:
The LLVM coding standards recommend "using" values that are only
needed by asserts:
http://llvm.org/docs/CodingStandards.html#assert-liberally

Without this change, LLVM cannot bootstrap with -Werror as the second
stage fails with this new warning:
https://reviews.llvm.org/rL291905

See also the previous fixes:
https://reviews.llvm.org/rL291916
https://reviews.llvm.org/rL291939
https://reviews.llvm.org/rL291940
https://reviews.llvm.org/rL291941

Reviewers: rsmith

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D28695

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291957 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonBitSimplify.cpp
lib/Transforms/Scalar/SROA.cpp
lib/Transforms/Utils/ValueMapper.cpp