Commit 4233ca1
authored
[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
#145026. Fix it by giving a
default value to `ID`. The value chosen is the same as used in
`OpenMPToLLVMIRTranslation.cpp`.1 parent 5bbe153 commit 4233ca1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9846 | 9846 | | |
9847 | 9847 | | |
9848 | 9848 | | |
9849 | | - | |
| 9849 | + | |
9850 | 9850 | | |
9851 | 9851 | | |
9852 | 9852 | | |
| |||
0 commit comments