diff options
author | Nick Hildenbrandt <hldnbrnd@uiuc.edu> | 2002-10-28 19:54:06 +0000 |
---|---|---|
committer | Nick Hildenbrandt <hldnbrnd@uiuc.edu> | 2002-10-28 19:54:06 +0000 |
commit | f0fca36d149f528b9c14b9ec83fd4e1b53535285 (patch) | |
tree | ac9a6ebf2f0eaab9089a4e1bf0570f474bc9a0da /lib/Target/CBackend/CBackend.cpp | |
parent | 2f305989b395a0a8bf00c4b9dc140a6df051245e (diff) |
Casting NULL can cause problems so lets just not cast NULL to anything.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 196281f6e8..1922e6fd26 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -426,9 +426,7 @@ void CWriter::printConstant(Constant *CPV) { case Type::PointerTyID: if (isa<ConstantPointerNull>(CPV)) { - Out << "(("; - printType(CPV->getType(), ""); - Out << ")NULL)"; + Out << "(NULL)"; break; } else if (ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(CPV)) { writeOperand(CPR->getValue()); |