diff options
author | Chris Lattner <sabre@nondot.org> | 2011-04-29 05:24:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-04-29 05:24:07 +0000 |
commit | 07e7998f09195806e9fe0430a2d5769020dd5dd0 (patch) | |
tree | 3e4579b4ddf2f72d0bae49728bdaa72f3c3ede8c /include/llvm/CodeGen/MachineInstrBuilder.h | |
parent | 4892dff07e7d99eb37aee868c4f2c91e9c7eba14 (diff) |
add a missing operator that caused us to have to use (*MIB).foo everywhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstrBuilder.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index f04dee2b4b..967e0197bb 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -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... |