OSDN Git Service

Fix WebAssembly broken build related to interface change in r281172.
authorEric Liu <ioeric@google.com>
Mon, 12 Sep 2016 09:35:59 +0000 (09:35 +0000)
committerEric Liu <ioeric@google.com>
Mon, 12 Sep 2016 09:35:59 +0000 (09:35 +0000)
Reviewers: bkramer

Subscribers: jfb, llvm-commits, dschuff

Differential Revision: https://reviews.llvm.org/D24449

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281201 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyRegStackify.cpp

index 5d4ea5b..047ce41 100644 (file)
@@ -812,8 +812,7 @@ bool WebAssemblyRegStackify::runOnMachineFunction(MachineFunction &MF) {
       // the next instruction we can build a tree on.
       if (Insert != &*MII) {
         ImposeStackOrdering(&*MII);
-        MII = std::prev(
-            llvm::make_reverse_iterator(MachineBasicBlock::iterator(Insert)));
+        MII = MachineBasicBlock::iterator(Insert).getReverse();
         Changed = true;
       }
     }