diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-06 07:46:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-06 07:46:13 +0000 |
commit | 05c64d149679ef624552f63a82423f850cb260eb (patch) | |
tree | 4dad7d995fdd68a061e5774f5a093fd8ddf5a475 /llvm/lib/Bytecode/Reader | |
parent | 49d1908af1e301d7e67caa7911edfd7a3c084fb0 (diff) | |
download | bcm5719-llvm-05c64d149679ef624552f63a82423f850cb260eb.tar.gz bcm5719-llvm-05c64d149679ef624552f63a82423f850cb260eb.zip |
don't misencode CC#'s
llvm-svn: 24219
Diffstat (limited to 'llvm/lib/Bytecode/Reader')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index 372a5b5aa08..f52cfa61678 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/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); |