diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-18 04:11:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-18 04:11:56 +0000 |
commit | 869de253809252fa6eb6f834c8571841b3ef007b (patch) | |
tree | 9ad39e2bbbde964a4fba0a74e828465f8093969f /lib/Bytecode | |
parent | 17d145d26fbe2fd0091a291cddefde912dc54503 (diff) | |
download | external_llvm-869de253809252fa6eb6f834c8571841b3ef007b.zip external_llvm-869de253809252fa6eb6f834c8571841b3ef007b.tar.gz external_llvm-869de253809252fa6eb6f834c8571841b3ef007b.tar.bz2 |
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
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index c8bf5af..60116af 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 |