Index: llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp =================================================================== --- llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp +++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp @@ -812,8 +812,7 @@ // 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; } }