summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-04-28 20:31:49 +0000
committerMatthias Braun <matze@braunis.de>2017-04-28 20:31:49 +0000
commit91d6a4488d49009d2c579394a8a7f7f944016bb5 (patch)
tree79ad6c37b4917288af0d140ebfa2ae08f6ffdac0 /llvm/lib/CodeGen
parentb19b57ea60da58d81c4af03a7ef2a1dd6a640267 (diff)
downloadbcm5719-llvm-91d6a4488d49009d2c579394a8a7f7f944016bb5.tar.gz
bcm5719-llvm-91d6a4488d49009d2c579394a8a7f7f944016bb5.zip
GlobalISel: Followup for r301679
llvm-svn: 301681
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index 7d4aceda228..75be7a55bd2 100644
--- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud