[llvm] [OMPIRBuilder] Fix use of uninitialized variable. (PR #145883)
Abid Qadeer via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 26 06:11:00 PDT 2025
abidh wrote:
> LGTM, but maybe consider not using a fixed value but compute one using a hash function like in #131646.
As I mentioned earlier, other places like [here](https://github.com/llvm/llvm-project/blob/afc6c2bb9b43c63d5fbf2596f559917ad335ee7d/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp#L4819) also use the fixed value for error case. I am also not sure what to hash to get a reasonable value for device id.
https://github.com/llvm/llvm-project/pull/145883
More information about the llvm-commits
mailing list