[all-commits] [llvm/llvm-project] e971ca: [TableGen] Simplify some code. NFC
Craig Topper via All-commits
all-commits at lists.llvm.org
Fri Mar 31 23:38:09 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e971ca8765741b1d5c4d2d3b79c0be49a55a1b28
https://github.com/llvm/llvm-project/commit/e971ca8765741b1d5c4d2d3b79c0be49a55a1b28
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-03-31 (Fri, 31 Mar 2023)
Changed paths:
M llvm/utils/TableGen/DAGISelMatcherGen.cpp
Log Message:
-----------
[TableGen] Simplify some code. NFC
This code was creating 1 entry or 0 entry std::array to pass to
to ArrayRef arguments. ArrayRef has a constructor from a single
object and we can use std::nullopt for an empty ArrayRef.
More information about the All-commits
mailing list