[mlir] Use mlir::TypedValue to avoid compiler bug in MSVC.
authorAdrian Kuegel <akuegel@google.com>
Mon, 6 Feb 2023 07:02:28 +0000 (08:02 +0100)
committerAdrian Kuegel <akuegel@google.com>
Mon, 6 Feb 2023 07:02:28 +0000 (08:02 +0100)
mlir/include/mlir/IR/OpDefinition.h

index 4c0a849..f7d8436 100644 (file)
@@ -631,13 +631,14 @@ public:
   class Impl
       : public TraitBase<ConcreteType, OneTypedResult<ResultType>::Impl> {
   public:
-    TypedValue<ResultType> getResult() {
-      return cast<TypedValue<ResultType>>(this->getOperation()->getResult(0));
+   mlir::TypedValue<ResultType> getResult() {
+      return cast<mlir::TypedValue<ResultType>>(
+          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<ResultType>() { return getResult(); }
+    operator mlir::TypedValue<ResultType>() { return getResult(); }
 
     ResultType getType() { return getResult().getType(); }
   };