[Lldb-commits] [Bug 8260] New: Invalid case in switch statement

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 30 13:47:10 PDT 2010


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

           Summary: Invalid case in switch statement
           Product: lldb
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: lldb-commits at cs.uiuc.edu
        ReportedBy: wlynch at wlynch.cx


Created an attachment (id=5541)
 --> (http://llvm.org/bugs/attachment.cgi?id=5541)
Patch to remove the invalid case.

Looking at: source/Core/Value.cpp
Within the method: Scalar & Value::ResolveValue(ExecutionContext *exe_ctx,
clang::ASTContext *ast_context)

When the context type is eContextTypeOpaqueClangQualType, we then enter a
switch statement over ValueTypes. One of the case statements is for
eContextTypeValue. However, that is a ContextType, not a ValueType.

I've attached a patch removing this case.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the lldb-commits mailing list