OSDN Git Service

Fix unused-lambda-capture warning by using default capture-by-ref
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 25 Aug 2017 16:46:07 +0000 (16:46 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 25 Aug 2017 16:46:07 +0000 (16:46 +0000)
commit7cd5c4385447a19aaaec38b24cdb48183ca69570
treedc079be17b308bb4295eddd6344ea955571f2380
parent2cfe1040adb99fe26c7b42e845a9ab3698a4eb84
Fix unused-lambda-capture warning by using default capture-by-ref

Since the lambda isn't escaped (via a std::function or similar) it's
fine/better to use default capture-by-ref to provide semantics similar
to language-level nested scopes (if/for/while/etc).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311782 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/LegalizerHelper.cpp