[LLVMbugs] [Bug 13728] New: Shorthand CloneFunction doesn't pass ClonedCodeInfo to verbose CloneFunction

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 29 22:32:13 PDT 2012


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

             Bug #: 13728
           Summary: Shorthand CloneFunction doesn't pass ClonedCodeInfo to
                    verbose CloneFunction
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Transformation Utilities
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sschiffli at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Look at the following from Cloning.h:

inline Function *CloneFunction(const Function *F, ClonedCodeInfo *CodeInfo =
0){
  ValueToValueMapTy VMap;
  return CloneFunction(F, VMap, CodeInfo);
}

The problem here is the signature of the other CloneFunction is:
Function *CloneFunction(const Function *F,
                        ValueToValueMapTy &VMap,
                        bool ModuleLevelChanges,
                        ClonedCodeInfo *CodeInfo = 0);

Thus the CodeInfo should be the 4th param, not the 3rd, and there needs to be
some default bool passed for ModuleLevelChanges

-- 
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