Fix Bug: Assembler/2003-05-12-MinIntProblem.llx
llvm-svn: 6123
This commit is contained in:
parent
250c68dc5c
commit
09eb76ddfd
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue