summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-11-15 18:26:39 +0000
committerTed Kremenek <kremenek@apple.com>2007-11-15 18:26:39 +0000
commit07941e21e91c00b4a29ac0ee6224d1f4dd356505 (patch)
tree7357a814902f5c4699fbfa15c32860bb9b5052b1 /llvm/lib/Analysis/ScalarEvolution.cpp
parent4791e1a7bd87baefddcda033b22ee71299f7d595 (diff)
downloadbcm5719-llvm-07941e21e91c00b4a29ac0ee6224d1f4dd356505.tar.gz
bcm5719-llvm-07941e21e91c00b4a29ac0ee6224d1f4dd356505.zip
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. llvm-svn: 44176
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud