mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-18 16:58:23 +00:00
[mlir] Make TypedValue::getType() const (#76568)
The TypedValue::getType() essentially forwards the return value of Value::getType() which is a const method. Somehow, at TypedValue level the method's constness is lost, so restore it. Originally done by: Nikita Kudriavtsev <nikita.kudriavtsev@intel.com>
This commit is contained in:
parent
f18536d642
commit
992661922a
@ -443,7 +443,7 @@ struct TypedValue : Value {
|
||||
static bool classof(Value value) { return llvm::isa<Ty>(value.getType()); }
|
||||
|
||||
/// Return the known Type
|
||||
Ty getType() { return llvm::cast<Ty>(Value::getType()); }
|
||||
Ty getType() const { return llvm::cast<Ty>(Value::getType()); }
|
||||
void setType(Ty ty) { Value::setType(ty); }
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user