This case JUST handles constantpointer nulls, not all pointers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3402 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-08-20 17:02:48 +00:00
parent 4cda83568e
commit 5a905e20b7

View File

@ -669,10 +669,8 @@ SparcModuleAsmPrinter::printSingleConstant(const Constant* CV)
// Use the name of the variable or method as the address value.
toAsm << getID(CPR->getValue()) << "\n";
}
else if (const ConstantPointer* CPP = dyn_cast<ConstantPointer>(CV))
else if (isa<ConstantPointerNull>(CV))
{
assert(CPP->isNullValue() &&
"Cannot yet print non-null pointer constants to assembly");
toAsm << "0\n";
}
else