[PATCH] D37152: [GlobalISel] Remove unused MF from lambda captures (NFC).
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 25 09:21:27 PDT 2017
fhahn created this revision.
Herald added subscribers: igorb, kristof.beyls.
Caught by a warning when building with recent versions of clang
https://reviews.llvm.org/D37152
Files:
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
Index: lib/CodeGen/GlobalISel/LegalizerHelper.cpp
===================================================================
--- lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+++ lib/CodeGen/GlobalISel/LegalizerHelper.cpp
@@ -661,9 +661,8 @@
}
case TargetOpcode::G_PHI: {
assert(TypeIdx == 0 && "Expecting only Idx 0");
- MachineFunction *MF = MI.getParent()->getParent();
- auto getExtendedReg = [this, MF, WideTy](unsigned Reg,
- MachineBasicBlock &MBB) {
+ auto getExtendedReg = [this, WideTy](unsigned Reg,
+ MachineBasicBlock &MBB) {
auto FirstTermIt = MBB.getFirstTerminator();
MIRBuilder.setInsertPt(MBB, FirstTermIt);
MachineInstr *DefMI = MRI.getVRegDef(Reg);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37152.112706.patch
Type: text/x-patch
Size: 784 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170825/57c92b4d/attachment.bin>
More information about the llvm-commits
mailing list