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 == "