diff options
Diffstat (limited to 'mlir/lib/Bytecode')
| -rw-r--r-- | mlir/lib/Bytecode/Writer/IRNumbering.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Bytecode/Writer/IRNumbering.h b/mlir/lib/Bytecode/Writer/IRNumbering.h index eab75f50d2ee..9b7ac0d3688e 100644 --- a/mlir/lib/Bytecode/Writer/IRNumbering.h +++ b/mlir/lib/Bytecode/Writer/IRNumbering.h @@ -50,11 +50,11 @@ struct AttrTypeNumbering { }; struct AttributeNumbering : public AttrTypeNumbering { AttributeNumbering(Attribute value) : AttrTypeNumbering(value) {} - Attribute getValue() const { return value.get<Attribute>(); } + Attribute getValue() const { return cast<Attribute>(value); } }; struct TypeNumbering : public AttrTypeNumbering { TypeNumbering(Type value) : AttrTypeNumbering(value) {} - Type getValue() const { return value.get<Type>(); } + Type getValue() const { return cast<Type>(value); } }; //===----------------------------------------------------------------------===// |
