Skip to content

Commit f550600

Browse files
authored
Zero inner always (rust-lang#998)
1 parent 2595aba commit f550600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enzyme/Enzyme/CacheUtility.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ AllocaInst *CacheUtility::createCacheForScope(LimitContext ctx, Type *T,
887887
Instruction *ZeroInst = nullptr;
888888
Value *firstallocation = CreateAllocation(
889889
allocationBuilder, myType, size, name + "_malloccache", &malloccall,
890-
/*ZeroMem*/ (EnzymeZeroCache && i == 0) ? &ZeroInst : nullptr);
890+
/*ZeroMem*/ EnzymeZeroCache ? &ZeroInst : nullptr);
891891

892892
scopeInstructions[alloc].push_back(malloccall);
893893
if (firstallocation != malloccall)

0 commit comments

Comments
 (0)