This case JUST handles constantpointer nulls, not all pointers.
authorChris Lattner <sabre@nondot.org>
Tue, 20 Aug 2002 17:02:48 +0000 (17:02 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Aug 2002 17:02:48 +0000 (17:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3402 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9AsmPrinter.cpp

index c5adac29fac8cab2d6ac8d3ba1c00a2f69dc7227..0a7f5ea7bf861253562c978d9a9835683ebfc7c7 100644 (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