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);
                          ^
llvm-svn: 255049
This commit is contained in:
Ed Maste 2015-12-08 20:50:35 +00:00
parent 5067158381
commit a3ad0f1e27

View 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());
}