From 2211ae2ae638af9384a3ea6603ed5a390944149e Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Mon, 16 Oct 2023 13:12:52 -0400 Subject: [PATCH] Attempt fix of memory errors --- enzyme/Enzyme/Utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/enzyme/Enzyme/Utils.cpp b/enzyme/Enzyme/Utils.cpp index 3599545a6324..e5aed91dbdc2 100644 --- a/enzyme/Enzyme/Utils.cpp +++ b/enzyme/Enzyme/Utils.cpp @@ -640,7 +640,7 @@ void callMemcpyStridedBlas(llvm::IRBuilder<> &B, llvm::Module &M, BlasInfo blas, llvm::ArrayRef args, llvm::Type *copy_retty, llvm::ArrayRef bundles) { - auto copy_name = Twine(blas.prefix) + blas.floatType + "copy" + blas.suffix; + Twine copy_name = Twine(blas.prefix) + blas.floatType + "copy" + blas.suffix; SmallVector tys; for (auto arg : args) @@ -655,7 +655,7 @@ void callMemcpyStridedBlas(llvm::IRBuilder<> &B, llvm::Module &M, BlasInfo blas, void callMemcpyStridedLapack(llvm::IRBuilder<> &B, llvm::Module &M, BlasInfo blas, llvm::ArrayRef args, llvm::ArrayRef bundles) { - auto copy_name = Twine(blas.prefix) + blas.floatType + "lacpy" + blas.suffix; + Twine copy_name = Twine(blas.prefix) + blas.floatType + "lacpy" + blas.suffix; SmallVector tys; for (auto arg : args) @@ -674,7 +674,7 @@ void callSPMVDiagUpdate(IRBuilder<> &B, Module &M, BlasInfo blas, ArrayRef bundles, bool byRef, bool julia_decl) { // add spmv diag update call if not already present - auto fnc_name = Twine("__enzyme_spmv_diag") + blas.floatType + blas.suffix; + Twine fnc_name = Twine("__enzyme_spmv_diag") + blas.floatType + blas.suffix; // spmvDiagHelper(uplo, n, alpha, x, incx, ya, incy, APa) auto FDiagUpdateT = FunctionType::get(