Allow converting a builder to an iterator
authorChris Lattner <sabre@nondot.org>
Thu, 1 Apr 2004 04:03:10 +0000 (04:03 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 1 Apr 2004 04:03:10 +0000 (04:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12586 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstrBuilder.h

index 4d63d99e45bfafef1303d45fe8e860eb32dbe3dc..138f8b58d89150d104e8170b886cd77db02a7d7e 100644 (file)
@@ -35,6 +35,7 @@ public:
   /// Allow automatic conversion to the machine instruction we are working on.
   ///
   operator MachineInstr*() const { return MI; }
+  operator MachineBasicBlock::iterator() const { return MI; }
 
   /// addReg - Add a new virtual register operand...
   ///