Skip to content

Commit 5d1e000

Browse files
authored
Fix pgcstack bug (rust-lang#977)
1 parent 82d04cc commit 5d1e000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enzyme/Enzyme/DifferentialUseAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ static inline bool is_value_needed_in_reverse(
462462
if (auto CI = dyn_cast<CallInst>(inst)) {
463463
StringRef funcName = getFuncNameFromCall(const_cast<CallInst *>(CI));
464464
if (funcName == "julia.get_pgcstack" || funcName == "julia.ptls_states")
465-
return true;
465+
return seen[idx] = true;
466466
}
467467

468468
bool inst_cv = gutils->isConstantValue(const_cast<Value *>(inst));

0 commit comments

Comments
 (0)