Skip to content

Commit f4fcfee

Browse files
jorickertcjdb
authored andcommitted
[mlir] Add nodiscard attribute to allowsUnregisteredDialects (llvm#105530)
This getter can easily be confused with the similar named allowUnregisteredDialects setter
1 parent 9d0d988 commit f4fcfee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir/IR/MLIRContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class MLIRContext {
133133
Dialect *getOrLoadDialect(StringRef name);
134134

135135
/// Return true if we allow to create operation for unregistered dialects.
136-
bool allowsUnregisteredDialects();
136+
[[nodiscard]] bool allowsUnregisteredDialects();
137137

138138
/// Enables creating operations in unregistered dialects.
139139
/// This option is **heavily discouraged**: it is convenient during testing

0 commit comments

Comments
 (0)