[Mlir-commits] [mlir] 85075b5 - [mlir] Use mlir::TypedValue to avoid compiler bug in MSVC.

Adrian Kuegel llvmlistbot at llvm.org
Sun Feb 5 23:04:09 PST 2023


Author: Adrian Kuegel
Date: 2023-02-06T08:02:28+01:00
New Revision: 85075b5a8526ceb727575613303584757ed06c45

URL: https://github.com/llvm/llvm-project/commit/85075b5a8526ceb727575613303584757ed06c45
DIFF: https://github.com/llvm/llvm-project/commit/85075b5a8526ceb727575613303584757ed06c45.diff

LOG: [mlir] Use mlir::TypedValue to avoid compiler bug in MSVC.

Added: 
    

Modified: 
    mlir/include/mlir/IR/OpDefinition.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h
index 4c0a849ba908c..f7d8436dcc1c9 100644
--- a/mlir/include/mlir/IR/OpDefinition.h
+++ b/mlir/include/mlir/IR/OpDefinition.h
@@ -631,13 +631,14 @@ class OneTypedResult {
   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(); }
   };


        


More information about the Mlir-commits mailing list