[llvm] [LLVM] Adjust argument passing for `APInt`. NFC. (PR #81814)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 29 04:40:42 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:

Doesn't it have to be alive for the whole match() call, not just the m_SpecificInt() call? Does temporary promotion take care of what?

https://github.com/llvm/llvm-project/pull/81814


More information about the llvm-commits mailing list