From 869de253809252fa6eb6f834c8571841b3ef007b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 18 Apr 2003 04:11:56 +0000 Subject: [PATCH] Fix a big bad bug I checked in yesterday :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5807 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/Reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index c8bf5af72e9..60116af7ac8 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -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