From b91d9712e1c1cc6d64cafcd9e1950352e1c8b046 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 18 Oct 2003 19:48:10 +0000 Subject: [PATCH] Fix warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9236 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/Reader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index e338c41e526..f699cf7bf27 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -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;