[Openmp-commits] [PATCH] D78744: [libomptarget] Initialize IsNew and Pointer_IsNew in target_data_begin

George Rokos via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Apr 23 13:34:24 PDT 2020


grokos added a comment.

I think it would look better if we initialized those variables inside `Device::getOrAllocTgtPtr` - the caller should not assume any default value. That's also what happens in `target_data_end` with the `IsLast` variable, it is initialized inside `Device::getTgtPtrBegin`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78744/new/

https://reviews.llvm.org/D78744





More information about the Openmp-commits mailing list