Commit 9e7c5ab
[OMPIRBuilder] Fix use of uninitialized variable. (llvm#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
llvm#145026. Fix it by giving a
default value to `ID`. The value chosen is the same as used in
`OpenMPToLLVMIRTranslation.cpp`.1 parent 10546fc commit 9e7c5ab
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