summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
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