[all-commits] [llvm/llvm-project] ee9c53: [libomptarget] Initialize reference parameter IsNe...
ronlieb via All-commits
all-commits at lists.llvm.org
Fri Apr 24 13:36:28 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ee9c53d27106689daf9f9f26354bead6ccad4ef1
https://github.com/llvm/llvm-project/commit/ee9c53d27106689daf9f9f26354bead6ccad4ef1
Author: Ron Lieberman <ron.lieberman at amd.com>
Date: 2020-04-24 (Fri, 24 Apr 2020)
Changed paths:
M openmp/libomptarget/src/device.cpp
Log Message:
-----------
[libomptarget] Initialize reference parameter IsNew within Device::getOrAllocTgtPtr
The two locals IsNew and Pointer_IsNew were uninitialized at declaration, and then passed by
reference to Device.getOrAllocTgtPtr which in turn did not assign on all
paths within the function. This resulted in occasional runtime failures in one application.
Device::getOrAllocTgtPtr will now initialize IsNew to false on entry to function.
Differential Revision: https://reviews.llvm.org/D78744
More information about the All-commits
mailing list