From: Eric Liu Date: Mon, 12 Sep 2016 09:35:59 +0000 (+0000) Subject: Fix WebAssembly broken build related to interface change in r281172. X-Git-Tag: android-x86-7.1-r4~27289 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=217343a63acbc767eb5c264a16134cc8c149631c;p=android-x86%2Fexternal-llvm.git Fix WebAssembly broken build related to interface change in r281172. 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 --- diff --git a/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp index 5d4ea5bd1a5..047ce4104f7 100644 --- a/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp +++ b/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp @@ -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; } }