[llvm] r281201 - Fix WebAssembly broken build related to interface change in r281172.
Eric Liu via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 12 02:36:00 PDT 2016
Author: ioeric
Date: Mon Sep 12 04:35:59 2016
New Revision: 281201
URL: http://llvm.org/viewvc/llvm-project?rev=281201&view=rev
Log:
Fix WebAssembly broken build related to interface change in r281172.
Reviewers: bkramer
Subscribers: jfb, llvm-commits, dschuff
Differential Revision: https://reviews.llvm.org/D24449
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp?rev=281201&r1=281200&r2=281201&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp Mon Sep 12 04:35:59 2016
@@ -812,8 +812,7 @@ bool WebAssemblyRegStackify::runOnMachin
// 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;
}
}
More information about the llvm-commits
mailing list