Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.290 -> 1.291
---
Log message:
Adjust to new ConstantIntegral interface for Max/Min tests.
---
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.290
llvm/lib/Target/CBackend/Writer.cpp:1.291
--- llvm/lib/Target/CBackend/Writer.cpp:1.290 Thu Nov 30 18:25:12 2006
+++ llvm/lib/Target/CBackend/Writer.cpp Wed Dec 6 14:45:15 2006
@@ -753,7 +753,7 @@
break;
case Type::LongTyID:
- if (cast<ConstantInt>(CPV)->isMinValue())
+ if (cast<ConstantInt>(CPV)->isMinValue(CPV->getType()->isSigned()))
Out << "(/*INT64_MIN*/(-9223372036854775807LL)-1)";
else
Out << cast<ConstantInt>(CPV)->getSExtValue() << "ll";
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits