[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp
Reid Spencer
reid at x10sys.com
Wed Dec 6 13:27:28 PST 2006
Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.291 -> 1.292
---
Log message:
Always pass "true" to isMaxValue(bool) because we know the type is LongTy.
---
Diffs of the changes: (+1 -1)
Writer.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.291 llvm/lib/Target/CBackend/Writer.cpp:1.292
--- llvm/lib/Target/CBackend/Writer.cpp:1.291 Wed Dec 6 14:45:15 2006
+++ llvm/lib/Target/CBackend/Writer.cpp Wed Dec 6 15:27:07 2006
@@ -753,7 +753,7 @@
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";
More information about the llvm-commits
mailing list