[llvm] [LLVM] Adjust argument passing for `APInt`. NFC. (PR #81814)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 15 08:51:47 PST 2024
================
@@ -843,9 +843,9 @@ struct bind_const_intval_ty {
/// Match a specified integer value or vector of all elements of that
/// value.
template <bool AllowUndefs> struct specific_intval {
- APInt Val;
+ const APInt &Val;
----------------
nikic wrote:
Hm, is this safe for all usages? Might the APInt be temporary?
https://github.com/llvm/llvm-project/pull/81814
More information about the llvm-commits
mailing list