diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-10-29 18:43:39 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-10-29 18:43:39 +0000 |
commit | 8308a4853628c455abeb21f7fef8772366decfa5 (patch) | |
tree | 8b94ca37cbd162da19524c09dda1b696045db504 /lib/Bitcode | |
parent | c20b0fbfcde995f472096aa9fde9fe2aeb71af94 (diff) |
Fixed warning concerning implicit conversion from a NULL pointer
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
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/Reader/Deserialize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Reader/Deserialize.cpp b/lib/Bitcode/Reader/Deserialize.cpp index 8fba9d20b5..ff0dd44dc2 100644 --- a/lib/Bitcode/Reader/Deserialize.cpp +++ b/lib/Bitcode/Reader/Deserialize.cpp @@ -108,7 +108,7 @@ void Deserializer::ReadUIntPtr(uintptr_t& PtrRef) { unsigned PtrId = ReadInt(); if (PtrId == 0) { - PtrRef = NULL; + PtrRef = 0; return; } |