This case JUST handles constantpointer nulls, not all pointers.

llvm-svn: 3402
diff --git a/llvm/lib/Target/Sparc/EmitAssembly.cpp b/llvm/lib/Target/Sparc/EmitAssembly.cpp
index c5adac2..0a7f5ea 100644
--- a/llvm/lib/Target/Sparc/EmitAssembly.cpp
+++ b/llvm/lib/Target/Sparc/EmitAssembly.cpp
@@ -669,10 +669,8 @@
       // 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