This patch modifies OpenMPIRBuilder::createTask to accept its Dependencies vector by value instead of by reference. This is necessary because the PostOutlineCB lambda that uses this Dependencies vector may outlive the original Dependencies vector. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D141651