diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2021-06-08 18:28:39 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2021-06-09 21:45:06 +0000 |
commit | 1b21e9c1fa990a303fa5a543c17a5f470a32e112 (patch) | |
tree | 433e8c6c0585fe9c0ad70773c9d46692b53cd926 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | b65f30d6fb6f5333dcb7c51f81c4309704c26f1f (diff) | |
download | llvm-1b21e9c1fa990a303fa5a543c17a5f470a32e112.zip llvm-1b21e9c1fa990a303fa5a543c17a5f470a32e112.tar.gz llvm-1b21e9c1fa990a303fa5a543c17a5f470a32e112.tar.bz2 |
Add a static assertions for custom Op<> to not defined data members (NFC)
A common mistake for newcomers to MLIR is to try to store extra member
on the Op class. However these are intended to be thing wrapper around
an Operation*, all the storage is meant to be encoded in attribute on
the underlying Operation. This can be confusing to debug, so better
catch it at build time.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D103869
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions