diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2019-09-04 20:30:00 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2019-09-04 20:30:00 +0000 |
commit | 40e3760472eae18919f4be8906869701db8f8f03 (patch) | |
tree | b1baa20526f6e91d6cd1221f969f2a2ceb37df6c /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 41adc374086d69082a1cef48ebea771833564afa (diff) | |
download | bcm5719-llvm-40e3760472eae18919f4be8906869701db8f8f03.tar.gz bcm5719-llvm-40e3760472eae18919f4be8906869701db8f8f03.zip |
Generate parent context id from Decl* instead of DeclContext*.
Because of multiple inheritance, a DeclContext pointer does not produce
the same pointer representation as a Decl pointer that references the
same AST Node.
When dumping the parentDeclContextId field of a node, convert the pointer
to Decl* first, so the id can be used to find the AST node it references.
Patch by Bert Belder.
llvm-svn: 370970
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions