aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/Reader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-06 07:46:13 +0000
committerChris Lattner <sabre@nondot.org>2005-11-06 07:46:13 +0000
commit54b369e752d6246bfaa59c85e718e0178d823865 (patch)
tree5a97be681c43bad2db5b8e04f021b1bd3187da44 /lib/Bytecode/Reader/Reader.cpp
parente73bd45c1dbc0f256cdf4450192a0e74af51e881 (diff)
don't misencode CC#'s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24219 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Reader.cpp')
-rw-r--r--lib/Bytecode/Reader/Reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp
index 372a5b5aa0..f52cfa6167 100644
--- a/lib/Bytecode/Reader/Reader.cpp
+++ b/lib/Bytecode/Reader/Reader.cpp
@@ -1999,7 +1999,7 @@ void BytecodeReader::ParseModuleGlobalInfo() {
CC |= ((ExtWord >> 5) & 15) << 4;
}
- Func->setCallingConv(CC);
+ Func->setCallingConv(CC-1);
Func->setAlignment(Alignment);
if (Handler) Handler->handleFunctionDeclaration(Func);