summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2015-12-08 20:50:35 +0000
committerEd Maste <emaste@freebsd.org>2015-12-08 20:50:35 +0000
commita3ad0f1e2748069b7811f5f2b3f1896e7f20dc60 (patch)
tree3eab81f974f51d9b8e927d97d16fbf60e67e591c
parent5067158381ed143b0c7bb8656f2a215f166cc2f6 (diff)
downloadbcm5719-llvm-a3ad0f1e2748069b7811f5f2b3f1896e7f20dc60.tar.gz
bcm5719-llvm-a3ad0f1e2748069b7811f5f2b3f1896e7f20dc60.zip
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
-rw-r--r--lldb/source/Symbol/Type.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lldb/source/Symbol/Type.cpp b/lldb/source/Symbol/Type.cpp
index cd0cb830682..8061e016ca5 100644
--- a/lldb/source/Symbol/Type.cpp
+++ b/lldb/source/Symbol/Type.cpp
@@ -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());
}
OpenPOWER on IntegriCloud