Casting NULL can cause problems so lets just not cast NULL to anything.

llvm-svn: 4349
This commit is contained in:
Nick Hildenbrandt 2002-10-28 19:54:06 +00:00
parent 864d279667
commit 85e3d59a1c
1 changed files with 1 additions and 3 deletions

View File

@ -426,9 +426,7 @@ void CWriter::printConstant(Constant *CPV) {
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());