From a406e3c2cab03a9bca3cad107a33fe138a4e2df6 Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Mon, 16 Oct 2023 13:30:20 -0400 Subject: [PATCH] Try again --- enzyme/Enzyme/Utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enzyme/Enzyme/Utils.cpp b/enzyme/Enzyme/Utils.cpp index e5aed91dbdc2..5c2ba6c71cdc 100644 --- a/enzyme/Enzyme/Utils.cpp +++ b/enzyme/Enzyme/Utils.cpp @@ -674,14 +674,14 @@ void callSPMVDiagUpdate(IRBuilder<> &B, Module &M, BlasInfo blas, ArrayRef bundles, bool byRef, bool julia_decl) { // add spmv diag update call if not already present - Twine fnc_name = Twine("__enzyme_spmv_diag") + blas.floatType + blas.suffix; + auto fnc_name = "__enzyme_spmv_diag" + blas.floatType + blas.suffix; // spmvDiagHelper(uplo, n, alpha, x, incx, ya, incy, APa) auto FDiagUpdateT = FunctionType::get( B.getVoidTy(), {BlasCT, BlasIT, BlasFPT, BlasPT, BlasIT, BlasPT, BlasIT, BlasPT}, false); Function *F = cast( - M.getOrInsertFunction(fnc_name.str(), FDiagUpdateT).getCallee()); + M.getOrInsertFunction(fnc_name, FDiagUpdateT).getCallee()); if (!F->empty()) { B.CreateCall(F, args, bundles);