aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/TableGen.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-01-16 23:24:27 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-01-16 23:24:27 +0000
commit486df738c305eeb148d557a94777f2c04aa72d40 (patch)
treebc1953ce53be6eb05f8602c42ed18e93473437c1 /llvm/utils/TableGen/TableGen.cpp
parentb1691ccaaa50f432f24d67759d9e78052f34cacd (diff)
downloadllvm-486df738c305eeb148d557a94777f2c04aa72d40.zip
llvm-486df738c305eeb148d557a94777f2c04aa72d40.tar.gz
llvm-486df738c305eeb148d557a94777f2c04aa72d40.tar.bz2
Removing unused default switch cases in switches over enums that already account for all enumeration values explicitly.
(This time I believe I've checked all the -Wreturn-type warnings from GCC & added the couple of llvm_unreachables necessary to silence them. If I've missed any, I'll happily fix them as soon as I know about them) llvm-svn: 148262
Diffstat (limited to 'llvm/utils/TableGen/TableGen.cpp')
-rw-r--r--llvm/utils/TableGen/TableGen.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp
index 2b1c89d..8c41358 100644
--- a/llvm/utils/TableGen/TableGen.cpp
+++ b/llvm/utils/TableGen/TableGen.cpp
@@ -178,9 +178,6 @@ namespace {
}
break;
}
- default:
- assert(1 && "Invalid Action");
- return true;
}
return false;