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

           Summary: EquivalenceClasses::ECValue's private constructor is
                    inaccessible when combined with a rvalue reference
                    aware STL.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Support Libraries
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


EquivalenceClasses::ECValue has an implicit, private constructor which ends up
getting called in the following places:

include/llvm/ADT/EquivalenceClasses.h:193
include/llvm/ADT/EquivalenceClasses.h:206

Rvalue reference versions of set::find and set::insert will be used to forward
the arguments rather than force the construction of the ECValue type within the
EquivalenceClasses members. This is meant to be a performance optimization
because it results in less constructions of ECValue. The fix which results in
the same behavior as today is to explicitly call the ECValue constructor when
passing the value to both methods above.

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