Remove default case in switch which covers all enumeration values
authorEd Maste <emaste@freebsd.org>
Tue, 8 Dec 2015 20:50:35 +0000 (20:50 +0000)
committerEd Maste <emaste@freebsd.org>
Tue, 8 Dec 2015 20:50:35 +0000 (20:50 +0000)
This also conveniently eliminates another warning from the unintentional
use of a trigraph:

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

lldb/source/Symbol/Type.cpp

index cd0cb83..8061e01 100644 (file)
@@ -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());
 }