diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-10-08 05:28:26 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-10-08 05:28:26 +0000 |
commit | 0628b724ff68105dc88af00a39f859447f22981e (patch) | |
tree | b640c9b91f396c058deabc269184459ebfac3049 /lib/CodeGen/TargetInfo.cpp | |
parent | e3c944a9f620dacb0c29d16e7d61c8e7fca10963 (diff) |
Free 'TheTargetCodeGenInfo' in the class CodeGenModule. This looks like an obvious memory leak that was reported from LLDB devs. The comment indicates the leak is deliberate, but I have no idea why this needs to be so. Please comment/revert if you know otherwise.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 91802d3b3a..ce729ce8da 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -3217,9 +3217,6 @@ const TargetCodeGenInfo &CodeGenModule::getTargetCodeGenInfo() { if (TheTargetCodeGenInfo) return *TheTargetCodeGenInfo; - // For now we just cache the TargetCodeGenInfo in CodeGenModule and don't - // free it. - const llvm::Triple &Triple = getContext().getTargetInfo().getTriple(); switch (Triple.getArch()) { default: |