From 6ee52fe873e2dca01ce1aaff335810fd17158943 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 28 Apr 2017 20:31:49 +0000 Subject: [PATCH] GlobalISel: Followup for r301679 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301681 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/GlobalISel/IRTranslator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/GlobalISel/IRTranslator.cpp b/lib/CodeGen/GlobalISel/IRTranslator.cpp index 7d4aceda228..75be7a55bd2 100644 --- a/lib/CodeGen/GlobalISel/IRTranslator.cpp +++ b/lib/CodeGen/GlobalISel/IRTranslator.cpp @@ -1199,7 +1199,8 @@ bool IRTranslator::runOnMachineFunction(MachineFunction &CurMF) { finishPendingPhis(); - TLI->finalizeLowering(*MF); + auto &TLI = *MF->getSubtarget().getTargetLowering(); + TLI.finalizeLowering(*MF); // Merge the argument lowering and constants block with its single // successor, the LLVM-IR entry block. We want the basic block to -- 2.40.0