Fix warning
authorChris Lattner <sabre@nondot.org>
Sat, 18 Oct 2003 19:48:10 +0000 (19:48 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 18 Oct 2003 19:48:10 +0000 (19:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9236 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp

index e338c41e5267b5dde6e1b811f3cbb3010f8c24f6..f699cf7bf27fca4e5548ae9dec25c273ad4b7185 100644 (file)
@@ -447,6 +447,7 @@ void BytecodeParser::ParseModuleGlobalInfo(const unsigned char *&Buf,
         LinkageID = (VarType >> 2) & 3;
       }
       switch (LinkageID) {
+      default: assert(0 && "Unknown linkage type!");
       case 0: Linkage = GlobalValue::ExternalLinkage;  break;
       case 1: Linkage = GlobalValue::WeakLinkage;      break;
       case 2: Linkage = GlobalValue::AppendingLinkage; break;