Skip to content

Commit 9f04b23

Browse files
committed
Ensure custom allocation free has debug info set
1 parent d580a8d commit 9f04b23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

enzyme/Enzyme/GradientUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7524,6 +7524,7 @@ llvm::CallInst *freeKnownAllocation(llvm::IRBuilder<> &builder,
75247524
}
75257525
auto tocall = getDeallocatorFnFromCall(orig);
75267526
auto freecall = builder.CreateCall(tocall, vals);
7527+
freecall->setDebugLoc(debuglocation);
75277528
return freecall;
75287529
}
75297530

0 commit comments

Comments
 (0)