mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
Always pass "true" to isMaxValue(bool) because we know the type is LongTy.
llvm-svn: 32290
This commit is contained in:
parent
166f4dd036
commit
bb6793b8b5
@ -753,7 +753,7 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
break;
|
||||
|
||||
case Type::LongTyID:
|
||||
if (cast<ConstantInt>(CPV)->isMinValue(CPV->getType()->isSigned()))
|
||||
if (cast<ConstantInt>(CPV)->isMinValue(true))
|
||||
Out << "(/*INT64_MIN*/(-9223372036854775807LL)-1)";
|
||||
else
|
||||
Out << cast<ConstantInt>(CPV)->getSExtValue() << "ll";
|
||||
|
Loading…
Reference in New Issue
Block a user