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 |