projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9efd7f4
)
Fix warning
author
Chris Lattner
<sabre@nondot.org>
Sat, 18 Oct 2003 19:48:10 +0000
(19:48 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/Bytecode/Reader/Reader.cpp
b/lib/Bytecode/Reader/Reader.cpp
index e338c41e5267b5dde6e1b811f3cbb3010f8c24f6..f699cf7bf27fca4e5548ae9dec25c273ad4b7185 100644
(file)
--- 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;