[llvm] bd1ddc5 - [NFC][OpenMP] Initialize pointer field
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 16 07:47:56 PDT 2023
Author: Soumi Manna
Date: 2023-08-16T07:47:24-07:00
New Revision: bd1ddc5850b16d01b37dc01e7e781dc4042f9dc2
URL: https://github.com/llvm/llvm-project/commit/bd1ddc5850b16d01b37dc01e7e781dc4042f9dc2
DIFF: https://github.com/llvm/llvm-project/commit/bd1ddc5850b16d01b37dc01e7e781dc4042f9dc2.diff
LOG: [NFC][OpenMP] Initialize pointer field
Reviewed By: tahonermann
Differential Revision: https://reviews.llvm.org/D157989
Added:
Modified:
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index c1b203be30512f..6c7d3760b12145 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -931,7 +931,7 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::emitKernelLaunch(
(void)OutlinedFnID;
// Return value of the runtime offloading call.
- Value *Return;
+ Value *Return = nullptr;
// Arguments for the target kernel.
SmallVector<Value *> ArgsVector;
More information about the llvm-commits
mailing list