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;
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;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits