Fixed warning concerning implicit conversion from a NULL pointer
authorTed Kremenek <kremenek@apple.com>
Mon, 29 Oct 2007 18:43:39 +0000 (18:43 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 29 Oct 2007 18:43:39 +0000 (18:43 +0000)
constant to an unsigned int.  We now just directly assign the literal 0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43459 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Reader/Deserialize.cpp

index 8fba9d20b5d2312815ccc3d96cd5602fa21d785d..ff0dd44dc25b1eb608c8826b2f69f2e9f6eeac79 100644 (file)
@@ -108,7 +108,7 @@ void Deserializer::ReadUIntPtr(uintptr_t& PtrRef) {
   unsigned PtrId = ReadInt();
   
   if (PtrId == 0) {
-    PtrRef = NULL;
+    PtrRef = 0;
     return;
   }