<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Memory leak of GV -- in ARM FastISel EnableARMLongCalls"
   href="http://llvm.org/bugs/show_bug.cgi?id=17978">17978</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Memory leak of GV -- in ARM FastISel EnableARMLongCalls
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: ARM
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>geek4civic@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>GV created in CodeGenerator is not freed. Valgrind detects it as leak.

See also;
<a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20131111/194340.html">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20131111/194340.html</a>

==3718== 146 (120 direct, 26 indirect) bytes in 1 blocks are definitely lost in
loss record 8 of 8
==3718==    at 0x4C29C97: operator new(unsigned long) (vg_replace_malloc.c:298)
==3718==    by 0x178C128: llvm::User::operator new(unsigned long, unsigned int)
(User.cpp:60)
==3718==    by 0x8CA7E8: llvm::GlobalVariable::operator new(unsigned long)
(GlobalVariable.h:55)
==3718==    by 0xC9F6DE: (anonymous
namespace)::ARMFastISel::getLibcallReg(llvm::Twine const&)
(ARMFastISel.cpp:2252)
==3718==    by 0xC9FD1D: (anonymous
namespace)::ARMFastISel::ARMEmitLibcall(llvm::Instruction const*,
llvm::RTLIB::Libcall) (ARMFastISel.cpp:2321)
==3718==    by 0xC9D06B: (anonymous
namespace)::ARMFastISel::SelectDiv(llvm::Instruction const*, bool)
(ARMFastISel.cpp:1809)
==3718==    by 0xCA2704: (anonymous
namespace)::ARMFastISel::TargetSelectInstruction(llvm::Instruction const*)
(ARMFastISel.cpp:2932)
==3718==    by 0xFEC646: llvm::FastISel::SelectInstruction(llvm::Instruction
const*) (FastISel.cpp:856)
==3718==    by 0x10A9FDD:
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(SelectionDAGISel.cpp:1040)
==3718==    by 0x10A6BC7:
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(SelectionDAGISel.cpp:387)
==3718==    by 0x12B0C98:
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(MachineFunctionPass.cpp:33)
==3718==    by 0x17656F8: llvm::FPPassManager::runOnFunction(llvm::Function&)
(LegacyPassManager.cpp:1538)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>