diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-11-15 18:26:39 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-11-15 18:26:39 +0000 |
commit | 767dd4b8306c81ab16d9c428ed1d5d39678315bb (patch) | |
tree | c6ffecdfa40002ae140c91034fda32a4aa32120f /Lex/Preprocessor.cpp | |
parent | 378c151280e8ed91f647cfcdac8cd677fe639d1a (diff) |
Added hack when serializing DeclRefExprs. This should probably be fixed.
Some FunctionDecls do not appear at the top-level or are owned by a DeclStmt.
In calls to implicitly defined functions, a FunctionDecl is created, but only
the DeclRefExprs reference them. Since an implicitly defined function may be
called multiple times, there is no clear ownership model for such objects.
Temporary solution: when serializing out DeclRefExprs, emit an ownership bit
for the Decl. This bit is determined by querying the serializer to see if the
Decl has already been serialized. If it hasn't, emit the Decl as an owned
pointer.
I repeat: this is a hack. This should be fixed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/Preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions