[llvm-commits] [llvm] r135555 - /llvm/trunk/lib/Target/TargetMachine.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Jul 19 18:27:59 PDT 2011
Author: d0k
Date: Tue Jul 19 20:27:58 2011
New Revision: 135555
URL: http://llvm.org/viewvc/llvm-project?rev=135555&view=rev
Log:
Don't leak CodeGenInfos.
Modified:
llvm/trunk/lib/Target/TargetMachine.cpp
Modified: llvm/trunk/lib/Target/TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetMachine.cpp?rev=135555&r1=135554&r2=135555&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/TargetMachine.cpp Tue Jul 19 20:27:58 2011
@@ -202,7 +202,8 @@
TargetMachine::TargetMachine(const Target &T,
StringRef TT, StringRef CPU, StringRef FS)
- : TheTarget(T), TargetTriple(TT), TargetCPU(CPU), TargetFS(FS), AsmInfo(0),
+ : TheTarget(T), TargetTriple(TT), TargetCPU(CPU), TargetFS(FS),
+ CodeGenInfo(0), AsmInfo(0),
MCRelaxAll(false),
MCNoExecStack(false),
MCSaveTempLabels(false),
@@ -215,6 +216,7 @@
}
TargetMachine::~TargetMachine() {
+ delete CodeGenInfo;
delete AsmInfo;
}
More information about the llvm-commits
mailing list