]> granicus.if.org Git - clang/commit
In the AST reader and writer, slide the preprocessed entity IDs by +1
authorDouglas Gregor <dgregor@apple.com>
Thu, 4 Aug 2011 17:06:18 +0000 (17:06 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 4 Aug 2011 17:06:18 +0000 (17:06 +0000)
commit7338a922dd1164002922163200b18a2c24eb0209
tree81200d5c39393d3d6113e90fc913be06239b1e82
parent837593fec8389eea3143920d7f2180b079b609e8
In the AST reader and writer, slide the preprocessed entity IDs by +1
so that we use ID zero as a sentinel for "no result". This matches the
convention set by all of the other global IDs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136885 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp