mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
4cda83568e
commit
5a905e20b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user