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/ADT/Trie.h | |
parent | 2cb395eae71dacda49ca3fe758618fc3e0701659 (diff) | |
download | external_llvm-50bee42b54cd9aec5f49566307df2b0cf23afcf6.zip external_llvm-50bee42b54cd9aec5f49566307df2b0cf23afcf6.tar.gz external_llvm-50bee42b54cd9aec5f49566307df2b0cf23afcf6.tar.bz2 |
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/ADT/Trie.h')
-rw-r--r-- | include/llvm/ADT/Trie.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/ADT/Trie.h b/include/llvm/ADT/Trie.h index 6b150c8..845af01 100644 --- a/include/llvm/ADT/Trie.h +++ b/include/llvm/ADT/Trie.h @@ -220,8 +220,7 @@ bool Trie<Payload>::addString(const std::string& s, const Payload& data) { assert(0 && "FIXME!"); return false; case Node::DontMatch: - assert(0 && "Impossible!"); - return false; + llvm_unreachable("Impossible!"); case Node::LabelIsPrefix: s1 = s1.substr(nNode->label().length()); cNode = nNode; @@ -258,8 +257,7 @@ const Payload& Trie<Payload>::lookup(const std::string& s) const { case Node::StringIsPrefix: return Empty; case Node::DontMatch: - assert(0 && "Impossible!"); - return Empty; + llvm_unreachable("Impossible!"); case Node::LabelIsPrefix: s1 = s1.substr(nNode->label().length()); cNode = nNode; |