Commit 500d2ba
committed
[OMPIRBuilder] Fix use of uninitialized variable.
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 aa24029 commit 500d2ba
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