add a missing operator that caused us to have to use (*MIB).foo everywhere.
authorChris Lattner <sabre@nondot.org>
Fri, 29 Apr 2011 05:24:07 +0000 (05:24 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 29 Apr 2011 05:24:07 +0000 (05:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130473 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstrBuilder.h

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