diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-02-07 05:05:23 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-02-07 05:05:23 +0000 |
commit | 858143816d43e58b17bfd11cb1b57afbd7f0f893 (patch) | |
tree | 661162864d8268b96d58b110187f87a8523f0f65 /lib/Linker/LinkModules.cpp | |
parent | bc2198133a1836598b54b943420748e75d5dea94 (diff) | |
download | external_llvm-858143816d43e58b17bfd11cb1b57afbd7f0f893.zip external_llvm-858143816d43e58b17bfd11cb1b57afbd7f0f893.tar.gz external_llvm-858143816d43e58b17bfd11cb1b57afbd7f0f893.tar.bz2 |
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149967 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/LinkModules.cpp')
-rw-r--r-- | lib/Linker/LinkModules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 60fa9a7..73ae6ad 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -267,7 +267,7 @@ Type *TypeMapTy::getImpl(Type *Ty) { // Otherwise, rebuild a modified type. switch (Ty->getTypeID()) { - default: assert(0 && "unknown derived type to remap"); + default: llvm_unreachable("unknown derived type to remap"); case Type::ArrayTyID: return *Entry = ArrayType::get(ElementTypes[0], cast<ArrayType>(Ty)->getNumElements()); |