From 07e7998f09195806e9fe0430a2d5769020dd5dd0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 29 Apr 2011 05:24:07 +0000 Subject: [PATCH] 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 --- include/llvm/CodeGen/MachineInstrBuilder.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index f04dee2b4b0d..967e0197bb7d 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -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...