================
@@ -472,8 +475,14 @@ GenericKernelTy::getKernelLaunchEnvironment(
LocalKLE.ReductionBuffer = *AllocOrErr;
// Remember to free the memory later.
AsyncInfoWrapper.freeAllocationAfterSynchronization(*AllocOrErr);
+ } else {
+ LocalKLE.ReductionBuffer = nullptr;
}
----------------
jdoerfert wrote:
Swap the cases, short one first.
https://github.com/llvm/llvm-project/pull/152831
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits