[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp
Nicholas Hildenbrandt
hldnbrnd at cs.uiuc.edu
Mon Oct 28 13:55:01 PST 2002
Changes in directory llvm/lib/CWriter:
Writer.cpp updated: 1.67 -> 1.68
---
Log message:
Casting NULL can cause problems so lets just not cast NULL to anything.
---
Diffs of the changes:
Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.67 llvm/lib/CWriter/Writer.cpp:1.68
--- llvm/lib/CWriter/Writer.cpp:1.67 Mon Oct 28 13:05:12 2002
+++ llvm/lib/CWriter/Writer.cpp Mon Oct 28 13:54:06 2002
@@ -426,9 +426,7 @@
case Type::PointerTyID:
if (isa<ConstantPointerNull>(CPV)) {
- Out << "((";
- printType(CPV->getType(), "");
- Out << ")NULL)";
+ Out << "(NULL)";
break;
} else if (ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(CPV)) {
writeOperand(CPR->getValue());
More information about the llvm-commits
mailing list