From 55baefd64d6d364d3f85792f3ef97cd65adfb898 Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Mon, 16 Oct 2023 13:36:28 -0400 Subject: [PATCH] fix mem issue --- enzyme/tools/enzyme-tblgen/blasDiffUseUpdater.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enzyme/tools/enzyme-tblgen/blasDiffUseUpdater.h b/enzyme/tools/enzyme-tblgen/blasDiffUseUpdater.h index 2e28e8c76c6d..93ceeb4e75a3 100644 --- a/enzyme/tools/enzyme-tblgen/blasDiffUseUpdater.h +++ b/enzyme/tools/enzyme-tblgen/blasDiffUseUpdater.h @@ -83,7 +83,7 @@ void emit_BLASDiffUse(TGPattern &pattern, llvm::raw_ostream &os) { if (hasDiffeRetVal) { size_t ptrRetArg = typeMap.size(); - Twine retarg = "CI->getArgOperand(" + Twine(ptrRetArg) + " + offset)"; + auto retarg = "CI->getArgOperand(" + std::to_string(ptrRetArg) + " + offset)"; os << " if (cublas) {\n"; os << " if (!gutils->isConstantValue(" << retarg << "))\n"; os << " if ((shadow || EnzymeRuntimeActivityCheck) && val == "