Skip to content

Commit ab86fc7

Browse files
authored
[mlir] Add nodiscard attribute to allowsUnregisteredDialects (#105530)
This getter can easily be confused with the similar named allowUnregisteredDialects setter
1 parent 46c94be commit ab86fc7

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)