[PATCH] D158488: [NFC] Initialize member pointers to nullptr.
Sindhu Chittireddy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 22 08:22:06 PDT 2023
schittir updated this revision to Diff 552380.
schittir added a comment.
Remove unnecessary initialization.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158488/new/
https://reviews.llvm.org/D158488
Files:
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
Index: llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
===================================================================
--- llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ 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<Value *> ArgsVector;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158488.552380.patch
Type: text/x-patch
Size: 428 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230822/925a1566/attachment.bin>
More information about the llvm-commits
mailing list