summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-20 17:02:48 +0000
committerChris Lattner <sabre@nondot.org>2002-08-20 17:02:48 +0000
commit74469f858f2c6146f9269a3a6db8d7a13040635e (patch)
tree8991c054482ba713f4592d46864b54a74b587962 /llvm/lib
parent7934dad0a05c0a2e75c299e263d48a86258b1df3 (diff)
downloadbcm5719-llvm-74469f858f2c6146f9269a3a6db8d7a13040635e.tar.gz
bcm5719-llvm-74469f858f2c6146f9269a3a6db8d7a13040635e.zip
This case JUST handles constantpointer nulls, not all pointers.
llvm-svn: 3402
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Sparc/EmitAssembly.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/EmitAssembly.cpp b/llvm/lib/Target/Sparc/EmitAssembly.cpp
index c5adac29fac..0a7f5ea7bf8 100644
--- a/llvm/lib/Target/Sparc/EmitAssembly.cpp
+++ b/llvm/lib/Target/Sparc/EmitAssembly.cpp
@@ -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
OpenPOWER on IntegriCloud