From: Chris Lattner Date: Tue, 20 Aug 2002 17:02:48 +0000 (+0000) Subject: This case JUST handles constantpointer nulls, not all pointers. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5a905e20b7ac02d2e50facb5cd110b4d3006def2;p=oota-llvm.git 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 --- diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index c5adac29fac..0a7f5ea7bf8 100644 --- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp +++ b/lib/Target/SparcV9/SparcV9AsmPrinter.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(CV)) + else if (isa(CV)) { - assert(CPP->isNullValue() && - "Cannot yet print non-null pointer constants to assembly"); toAsm << "0\n"; } else