diff options
author | Arthur Eubanks <aeubanks@google.com> | 2022-08-26 15:06:51 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2022-08-27 10:57:53 -0700 |
commit | 7a94d189ad1a49aace4e4008e10c8ab774198e67 (patch) | |
tree | 0fbd358c116a0278711591095b33c0f3da02a04c /clang/lib/Frontend/FrontendAction.cpp | |
parent | 9d6ab7230b4b07a113e13b0958efbd2fc2ce6a73 (diff) | |
download | llvm-7a94d189ad1a49aace4e4008e10c8ab774198e67.zip llvm-7a94d189ad1a49aace4e4008e10c8ab774198e67.tar.gz llvm-7a94d189ad1a49aace4e4008e10c8ab774198e67.tar.bz2 |
[LazyCallGraph] Update libcall list when replacing a libcall node's function
Otherwise when we visit all libcalls in
updateCGAndAnalysisManagerForPass(), the old libcall is dead and doesn't
have a node.
We treat libcalls conservatively in LazyCallGraph because any function
may introduce calls to them out of thin air.
It is weird to change the signature of a libcall since introducing calls
to the libcall with a different signature may break, but other passes
like deadargelim already do it, so let's preserve this behavior for now.
Fixes an issue found in D128830.
Reviewed By: psamolysov
Differential Revision: https://reviews.llvm.org/D132764
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
0 files changed, 0 insertions, 0 deletions