Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Unified Diff: src/IceInst.h

Issue 2297363002: Subzero: Fix a build error against LLVM trunk. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInst.h
diff --git a/src/IceInst.h b/src/IceInst.h
index c98f69d07d6e180ad3d7cde913cff7d2b3a4cf8a..68bd1a2fe79edeb293221e3b5b99807ef2e6edcc 100644
--- a/src/IceInst.h
+++ b/src/IceInst.h
@@ -1161,6 +1161,15 @@ inline const Inst *iteratorToInst(InstList::const_iterator Iter) {
return &*Iter;
}
+inline InstList::iterator
+reverseToForwardIterator(InstList::reverse_iterator RI) {
+#ifdef PNACL_LLVM
+ return RI.base();
+#else // !PNACL_LLVM
+ return ++RI.getReverse();
+#endif // !PNACL_LLVM
+}
+
} // end of namespace Ice
#endif // SUBZERO_SRC_ICEINST_H
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698