This reverts commit a8020930a8174d84da04fa91b6fef244207f42f5. Relands original commit but fixing the unit-test to consume the `llvm::Expected` error object.
This reverts commit a8020930a8174d84da04fa91b6fef244207f42f5. Relands original commit but fixing the unit-test to consume the `llvm::Expected` error object.