Valero Energy Corporation
September 10, 2020
Page 2
In connection with this opinion, I have assumed: (a) the genuineness of all signatures on all documents examined by me and (b) the authenticity of all documents submitted to me as originals and the conformity to the originals of all documents submitted to me as copies.
Based upon, and subject to the assumptions, limitations and qualifications set forth herein, I am of the opinion that:
1. The Company is a corporation duly organized and validly existing in good standing under the laws of the State of Delaware.
2. The Notes will, when they have been duly executed, authenticated, issued and delivered in accordance with the provisions of the Senior Indenture and duly purchased and paid for in accordance with the terms of the Underwriting Agreement, constitute legal, valid and binding obligations of the Company, enforceable against the Company in accordance with their terms, except as that enforcement is subject to (a) the effect of any bankruptcy, insolvency, reorganization, moratorium, arrangement or similar laws affecting the rights and remedies of creditors generally, including without limitation the effect of statutory or other laws regarding fraudulent transfers or preferential transfers, (b) general principles of equity, including without limitation concepts of materiality, reasonableness, good faith and fair dealing and the possible unavailability of specific performance, injunctive relief or other equitable remedies regardless of whether enforceability is considered in a proceeding in equity or at law.
The opinions set forth above are limited in all respects to matters of Texas law, the General Corporation Law of the State of Delaware and the federal laws of the United States, in each instance as currently in effect, and in each case, exclusive of municipal, local and county ordinances, laws, rules and regulations. At your request, this opinion is being furnished to you for filing as Exhibit 5.1 to the Company’s Current Report on Form 8-K to be filed on the date hereof. Additionally, I hereby consent to the reference to me under the caption “Legal Matters” in the Prospectus. In giving such consent, I do not hereby concede that I am within the category of persons whose consent is required under Section 7 of the Securities Act or the rules and regulations of the Commission promulgated thereunder.
Very truly yours,
/s/ Richard J. Walsh