[LLVMbugs] [Bug 7605] New: CreateMalloc() and CreateFree() are not orthogonal

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 9 03:04:03 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7605

           Summary: CreateMalloc() and CreateFree() are not orthogonal
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: hvdieren at elis.ugent.be
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5196)
 --> (http://llvm.org/bugs/attachment.cgi?id=5196)
Proposed patch

CreateMalloc() takes an optional malloc()-function argument when inserting the
code at the end of a basic block, but not when inserting the code before an
instruction.

CreateFree() returns the code generated when inserting at the end of a basic
block but not when inserting before an instruction.

Better to make them orthogonal; works better for my project because I use a lot
of template function where the insertion point type (Instruction * or
BasicBlock *) is abstracted as a template argument.

Patch makes these changes. Impacts Instructions.h Instructions.cpp
GlobalOpt.cpp

Kind regards,
Hans Vandierendonck

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list