Skip to content

Commit

Permalink
fix mem issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Oct 16, 2023
1 parent a406e3c commit 55baefd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enzyme/tools/enzyme-tblgen/blasDiffUseUpdater.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "
Expand Down

0 comments on commit 55baefd

Please sign in to comment.