mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Casting NULL can cause problems so lets just not cast NULL to anything.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2f305989b3
commit
f0fca36d14
@ -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());
|
||||
|
@ -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…
x
Reference in New Issue
Block a user