forked from OSchip/llvm-project
Casting NULL can cause problems so lets just not cast NULL to anything.
llvm-svn: 4349
This commit is contained in:
parent
864d279667
commit
85e3d59a1c
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue