[all-commits] [llvm/llvm-project] ab2e22: Fix UB passing nullptr to an EmptyProperties class...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Fri May 5 16:51:13 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ab2e224e1935350d78de4bfb6cb3f2e8628df23d
https://github.com/llvm/llvm-project/commit/ab2e224e1935350d78de4bfb6cb3f2e8628df23d
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2023-05-05 (Fri, 05 May 2023)
Changed paths:
M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
M mlir/test/mlir-tblgen/op-decl-and-defs.td
M mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
Log Message:
-----------
Fix UB passing nullptr to an EmptyProperties class when building OpAdaptor
A new forwarding constructor is introduced on the adaptor to take directly
an OpaqueProperties object and do the nullptr checking and casting to avoid
the boilerplate at callsites.
Differential Revision: https://reviews.llvm.org/D150003
More information about the All-commits
mailing list