Author: emaste
Date: Tue Dec  8 14:50:35 2015
New Revision: 255049

URL: http://llvm.org/viewvc/llvm-project?rev=255049&view=rev
Log:
Remove default case in switch which covers all enumeration values

This also conveniently eliminates another warning from the unintentional
use of a trigraph:

warning: trigraph converted to '[' character [-Wtrigraphs]
        default: printf("???(%u)", type);
                          ^

Modified:
    lldb/trunk/source/Symbol/Type.cpp

Modified: lldb/trunk/source/Symbol/Type.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Type.cpp?rev=255049&r1=255048&r2=255049&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/Type.cpp (original)
+++ lldb/trunk/source/Symbol/Type.cpp Tue Dec  8 14:50:35 2015
@@ -56,7 +56,6 @@ CompilerContext::Dump() const
         case CompilerContextKind::Variable:         printf("Variable"); break;
         case CompilerContextKind::Enumeration:      printf("Enumeration"); 
break;
         case CompilerContextKind::Typedef:          printf("Typedef"); break;
-        default: printf("???(%u)", type);
     }
     printf("(\"%s\")\n", name.GetCString());
 }


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to