[all-commits] [llvm/llvm-project] 4233ca: [OMPIRBuilder] Fix use of uninitialized variable. ...
Abid Qadeer via All-commits
all-commits at lists.llvm.org
Thu Jun 26 08:11:22 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4233ca1e4e53f91c2ac9a40ef79ce8fa17acc03a
https://github.com/llvm/llvm-project/commit/4233ca1e4e53f91c2ac9a40ef79ce8fa17acc03a
Author: Abid Qadeer <haqadeer at amd.com>
Date: 2025-06-26 (Thu, 26 Jun 2025)
Changed paths:
M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
Log Message:
-----------
[OMPIRBuilder] Fix use of uninitialized variable. (#145883)
The code in `OpenMPIRBuilder::getTargetEntryUniqueInfo` calls
`ID.getDevice()` even when `getUniqueID` has failed and ID is
un-initialized. This caused a sanitizer fail for me in
https://github.com/llvm/llvm-project/pull/145026. Fix it by giving a
default value to `ID`. The value chosen is the same as used in
`OpenMPToLLVMIRTranslation.cpp`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list