diff options
author | Hari Limaye <hari.limaye@arm.com> | 2024-10-04 14:33:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-04 14:33:04 +0100 |
commit | 4da4fac322165420f0522cb554e5f6f25540d564 (patch) | |
tree | c96d3668c4d1f6e08dde077fbe04e6813c43b06a /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 47c8b95daeec8e6cb012344ed037024528a73295 (diff) | |
download | llvm-4da4fac322165420f0522cb554e5f6f25540d564.zip llvm-4da4fac322165420f0522cb554e5f6f25540d564.tar.gz llvm-4da4fac322165420f0522cb554e5f6f25540d564.tar.bz2 |
[ArgPromotion] Consider InvokeInst in Caller alias analysis (#110335)
Check that all users of a Function are CallBase rather than CallInst
when performing alias analysis using actual arguments in the calling
function, as this check is also valid for Invoke instructions.
This allows replacing the existing check with an assert, as the Function
only being used by CallBase derived instructions is a precondition of
the transform.
This addresses post-commit review on #106216.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions