Skip to content

Commit 96e9c3a

Browse files
sdesmalen-armnikic
andauthored
Update llvm/lib/CodeGen/InitUndef.cpp
Co-authored-by: Nikita Popov <[email protected]>
1 parent e70e334 commit 96e9c3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/InitUndef.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ bool InitUndef::handleSubReg(MachineFunction &MF, MachineInstr &MI,
168168
// class associated for the subreg. This may happen for artificial subregs
169169
// that are not directly addressable.
170170
if (any_of(SubRegIndexNeedInsert,
171-
[&TRI = TRI, &TargetRegClass](unsigned ind) -> bool {
172-
return !TRI->getSubRegisterClass(TargetRegClass, ind);
171+
[&](unsigned Ind) -> bool {
172+
return !TRI->getSubRegisterClass(TargetRegClass, Ind);
173173
}))
174174
continue;
175175

0 commit comments

Comments
 (0)