diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp --- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp +++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp @@ -931,7 +931,7 @@ (void)OutlinedFnID; // Return value of the runtime offloading call. - Value *Return; + Value *Return = nullptr; // Arguments for the target kernel. SmallVector ArgsVector;