]> granicus.if.org Git - llvm/commitdiff
Fix a big bad bug I checked in yesterday :(
authorChris Lattner <sabre@nondot.org>
Fri, 18 Apr 2003 04:11:56 +0000 (04:11 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 18 Apr 2003 04:11:56 +0000 (04:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5807 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp

index c8bf5af72e94ceb2bde9ae6018090b70c10db290..60116af7ac8e8fda35d484cb1c4d4441f5f4873e 100644 (file)
@@ -306,7 +306,7 @@ bool BytecodeParser::ParseFunction(const uchar *&Buf, const uchar *EndBuf) {
   if (!hasInternalMarkerOnly) {
     unsigned LinkageType;
     if (read_vbr(Buf, EndBuf, LinkageType)) return true;
-    if (LinkageType & 0x3) return true;
+    if (LinkageType & ~0x3) return true;
     Linkage = (GlobalValue::LinkageTypes)LinkageType;
   } else {
     // We used to only support two linkage models: internal and external