diff options
author | Abid Qadeer <haqadeer@amd.com> | 2025-06-26 16:10:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-26 16:10:58 +0100 |
commit | 4233ca1e4e53f91c2ac9a40ef79ce8fa17acc03a (patch) | |
tree | 0051624c3e6a361184085c32fdb1252bdd12587c /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 5bbe1536dfa6f1dce8737e466c209c553d614e50 (diff) | |
download | llvm-4233ca1e4e53f91c2ac9a40ef79ce8fa17acc03a.zip llvm-4233ca1e4e53f91c2ac9a40ef79ce8fa17acc03a.tar.gz llvm-4233ca1e4e53f91c2ac9a40ef79ce8fa17acc03a.tar.bz2 |
[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`.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions