aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/Writer.cpp
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
commitd10ecf7d20915c8fa3cfbcde0253f59b0f0178ce (patch)
treea95871a1e06b9eeae9ff359581c90f07f46104d1 /lib/Target/CBackend/Writer.cpp
parentc6bf4bfc351c11b49e8f0d5df010f40877646e63 (diff)
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
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r--lib/Target/CBackend/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp
index 53adc49f8e..d8fe0e8350 100644
--- a/lib/Target/CBackend/Writer.cpp
+++ b/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";