diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-12 15:13:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-12 15:13:52 +0000 |
commit | 8017a7575ea2ba288c5a357849530bdbac707b68 (patch) | |
tree | bdcb161fefb1f876290e147270508695c09b5466 /lib/Bytecode | |
parent | a3dcb74e416d8eb71cdcb9ef5bd5e812aa8cc64a (diff) |
Fix Bug: Assembler/2003-05-12-MinIntProblem.llx
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Reader/ConstantReader.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index d1c8644ddd..0ad38b4025 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/lib/Bytecode/Reader/ConstantReader.cpp @@ -245,19 +245,13 @@ bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf, break; } - case Type::SByteTyID: // Unsigned integer types... + case Type::SByteTyID: // Signed integer types... case Type::ShortTyID: case Type::IntTyID: { - int Val; - if (read_vbr(Buf, EndBuf, Val)) return true; - if (!ConstantSInt::isValueValidForType(Ty, Val)) return true; - V = ConstantSInt::get(Ty, Val); - break; - } - - case Type::LongTyID: { + case Type::LongTyID: int64_t Val; if (read_vbr(Buf, EndBuf, Val)) return true; + if (!ConstantSInt::isValueValidForType(Ty, Val)) return true; V = ConstantSInt::get(Ty, Val); break; } |