1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Use default ref capture to avoid unused capture warning on assert-used variable

This commit is contained in:
David Blaikie 2021-04-08 16:56:27 -07:00
parent c91c401b05
commit b6df56d660

View File

@ -233,7 +233,7 @@ void NVPTXLowerArgs::handleByValParam(Argument *Arg) {
Type *StructType = PType->getElementType();
auto IsALoadChain = [Arg](Value *Start) {
auto IsALoadChain = [&](Value *Start) {
SmallVector<Value *, 16> ValuesToCheck = {Start};
auto IsALoadChainInstr = [](Value *V) -> bool {
if (isa<GetElementPtrInst>(V) || isa<BitCastInst>(V) || isa<LoadInst>(V))