mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-27 09:17:11 +00:00
Always pass "true" to isMaxValue(bool) because we know the type is LongTy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32290 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -753,7 +753,7 @@ void CWriter::printConstant(Constant *CPV) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case Type::LongTyID:
|
case Type::LongTyID:
|
||||||
if (cast<ConstantInt>(CPV)->isMinValue(CPV->getType()->isSigned()))
|
if (cast<ConstantInt>(CPV)->isMinValue(true))
|
||||||
Out << "(/*INT64_MIN*/(-9223372036854775807LL)-1)";
|
Out << "(/*INT64_MIN*/(-9223372036854775807LL)-1)";
|
||||||
else
|
else
|
||||||
Out << cast<ConstantInt>(CPV)->getSExtValue() << "ll";
|
Out << cast<ConstantInt>(CPV)->getSExtValue() << "ll";
|
||||||
|
|||||||
@@ -753,7 +753,7 @@ void CWriter::printConstant(Constant *CPV) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case Type::LongTyID:
|
case Type::LongTyID:
|
||||||
if (cast<ConstantInt>(CPV)->isMinValue(CPV->getType()->isSigned()))
|
if (cast<ConstantInt>(CPV)->isMinValue(true))
|
||||||
Out << "(/*INT64_MIN*/(-9223372036854775807LL)-1)";
|
Out << "(/*INT64_MIN*/(-9223372036854775807LL)-1)";
|
||||||
else
|
else
|
||||||
Out << cast<ConstantInt>(CPV)->getSExtValue() << "ll";
|
Out << cast<ConstantInt>(CPV)->getSExtValue() << "ll";
|
||||||
|
|||||||
Reference in New Issue
Block a user