[LLVMbugs] [Bug 7323] New: Tablegen should not generate switch statements if no case lables exist

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 8 16:16:16 PDT 2010


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

           Summary: Tablegen should not generate switch statements if no
                    case lables exist
           Product: tools
           Version: 2.7
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: TableGen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: micah.villmow at amd.com
                CC: llvmbugs at cs.uiuc.edu


unsigned AMDILGenRegisterInfo::getSubReg(unsigned RegNo, unsigned Index) const
{
  switch (RegNo) {
  default:
    return 0;
  };
  return 0;
}

D:\hq\stg\opencl\drivers\opencl\compiler\llvm\build\lib\Target\AMDIL\msvc-9.0\debug\address-model-32\link-static\runtime-link-static\AMDILGenRegisterInfo.inc(3849)
: warning C4065: switch statement contains 'default' but no 'case' labels

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