summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-06 21:27:07 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-06 21:27:07 +0000
commitb8cf1ff83caf21f925be1485e4eb3dc307e49dd1 (patch)
tree98a057aab2c1239d3f74bca6945489ee44156702 /llvm
parentde09dea742d9c3eca2fbff46932ce2ba9043b496 (diff)
downloadbcm5719-llvm-b8cf1ff83caf21f925be1485e4eb3dc307e49dd1.tar.gz
bcm5719-llvm-b8cf1ff83caf21f925be1485e4eb3dc307e49dd1.zip
Always pass "true" to isMaxValue(bool) because we know the type is LongTy.
llvm-svn: 32290
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/CBackend/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp
index 53adc49f8e9..d8fe0e83500 100644
--- a/llvm/lib/Target/CBackend/Writer.cpp
+++ b/llvm/lib/Target/CBackend/Writer.cpp
@@ -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";
OpenPOWER on IntegriCloud