diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-20 00:56:17 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-20 00:56:17 +0000 |
commit | d0e0bb53cf9f0709feb854430a54b5c039016705 (patch) | |
tree | 706c1f62c366ebfdcd76d3bff065bcacefa5a88e /include/llvm/CodeGen/FastISel.h | |
parent | 6ef91b293a01302960736bb09d01462dad489c44 (diff) | |
download | external_llvm-d0e0bb53cf9f0709feb854430a54b5c039016705.zip external_llvm-d0e0bb53cf9f0709feb854430a54b5c039016705.tar.gz external_llvm-d0e0bb53cf9f0709feb854430a54b5c039016705.tar.bz2 |
Fix a leak in the FastISel code that Chris pointed out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/FastISel.h')
-rw-r--r-- | include/llvm/CodeGen/FastISel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h index b395e97..a241756 100644 --- a/include/llvm/CodeGen/FastISel.h +++ b/include/llvm/CodeGen/FastISel.h @@ -43,13 +43,13 @@ public: SelectInstructions(BasicBlock::iterator Begin, BasicBlock::iterator End, DenseMap<const Value*, unsigned> &ValueMap); + virtual ~FastISel(); + protected: FastISel(MachineBasicBlock *mbb, MachineFunction *mf, const TargetInstrInfo *tii) : MBB(mbb), MF(mf), TII(tii) {} - virtual ~FastISel(); - /// FastEmit_r - This method is called by target-independent code /// to request that an instruction with the given type and opcode /// be emitted. |