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:
parent
c91c401b05
commit
b6df56d660
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user