[llvm] [TARGETS-PARSER] Added const reference for params with size >= 16 bytes (PR #125083)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 08:32:11 PST 2025


================
@@ -51,7 +51,7 @@ void NVPTXFloatMCExpr::printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const {
     break;
   }
 
-  APInt API = APF.bitcastToAPInt();
+  const APInt &API = APF.bitcastToAPInt();
----------------
topperc wrote:

bitcastToAPInt returns a new APInt not a reference.

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


More information about the llvm-commits mailing list