Skip to content

Commit

Permalink
add a missing operator that caused us to have to use (*MIB).foo every…
Browse files Browse the repository at this point in the history
…where.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130473 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Apr 29, 2011
1 parent 4892dff commit 07e7998
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/llvm/CodeGen/MachineInstrBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class MachineInstrBuilder {
/// 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...
Expand Down

0 comments on commit 07e7998

Please sign in to comment.