From 85075b5a8526ceb727575613303584757ed06c45 Mon Sep 17 00:00:00 2001 From: Adrian Kuegel Date: Mon, 6 Feb 2023 08:02:28 +0100 Subject: [PATCH] [mlir] Use mlir::TypedValue to avoid compiler bug in MSVC. --- mlir/include/mlir/IR/OpDefinition.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h index 4c0a849..f7d8436 100644 --- a/mlir/include/mlir/IR/OpDefinition.h +++ b/mlir/include/mlir/IR/OpDefinition.h @@ -631,13 +631,14 @@ public: class Impl : public TraitBase::Impl> { public: - TypedValue getResult() { - return cast>(this->getOperation()->getResult(0)); + mlir::TypedValue getResult() { + return cast>( + this->getOperation()->getResult(0)); } /// If the operation returns a single value, then the Op can be implicitly /// converted to a Value. This yields the value of the only result. - operator TypedValue() { return getResult(); } + operator mlir::TypedValue() { return getResult(); } ResultType getType() { return getResult().getType(); } }; -- 2.7.4