[LLVMbugs] [Bug 6856] New: X86ELFWriterInfo.ctor: unneeded local var is64Bit

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 17 02:43:02 PDT 2010


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

           Summary: X86ELFWriterInfo.ctor: unneeded local var is64Bit
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: le_afo at gmx.net
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4689)
 --> (http://llvm.org/bugs/attachment.cgi?id=4689)
uni diff for X86ELFWriterInfo.cpp

X86ELFWriterInfo::X86ELFWriterInfo(TargetMachine &TM) :
bool is64Bit = TM.getTargetData()->getPointerSizeInBits() == 64;

local var is64Bit is not needed as its a member variable of parent class
TargetELFWriterInfo and will be initialized in TargetELFWriterInfo.ctor
the same way

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