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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to