diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-02-05 22:14:15 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-02-05 22:14:15 +0000 |
commit | 50bee42b54cd9aec5f49566307df2b0cf23afcf6 (patch) | |
tree | caa20b5d1a706f63057cf77fd42f4c6126050746 /include/llvm/Support/CommandLine.h | |
parent | 2cb395eae71dacda49ca3fe758618fc3e0701659 (diff) |
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index dd291f6c05..c5221af05c 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -337,7 +337,7 @@ struct OptionValueBase : public GenericOptionValue { bool hasValue() const { return false; } - const DataType &getValue() const { assert(false && "no default value"); } + const DataType &getValue() const { llvm_unreachable("no default value"); } // Some options may take their value from a different data type. template<class DT> |