aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Option.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Driver/Option.cpp')
-rw-r--r--lib/Driver/Option.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/Option.cpp b/lib/Driver/Option.cpp
index 054f7ebbc8..8a9c601549 100644
--- a/lib/Driver/Option.cpp
+++ b/lib/Driver/Option.cpp
@@ -199,6 +199,7 @@ Arg *Option::accept(const ArgList &Args, unsigned &Index) const {
return new Arg(getUnaliasedOption(), Index - 2,
Args.getArgString(Index-2)+getName().size(),
Args.getArgString(Index-1));
+ default:
+ llvm_unreachable("Invalid option kind!");
}
- llvm_unreachable("Invalid option kind!");
}