[llvm-branch-commits] [mlir] 96efe90 - [mlir][IR] Add explicit default constructor to OwningModuleRef to appease MSVC

River Riddle via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 3 16:41:08 PST 2020


Author: River Riddle
Date: 2020-12-03T16:31:21-08:00
New Revision: 96efe90fe7c347c503cd6ade200da7a3e94f7b41

URL: https://github.com/llvm/llvm-project/commit/96efe90fe7c347c503cd6ade200da7a3e94f7b41
DIFF: https://github.com/llvm/llvm-project/commit/96efe90fe7c347c503cd6ade200da7a3e94f7b41.diff

LOG: [mlir][IR] Add explicit default constructor to OwningModuleRef to appease MSVC

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/BuiltinOps.h b/mlir/include/mlir/IR/BuiltinOps.h
index dd23f90af6c7..c695a005283b 100644
--- a/mlir/include/mlir/IR/BuiltinOps.h
+++ b/mlir/include/mlir/IR/BuiltinOps.h
@@ -37,6 +37,7 @@ namespace mlir {
 class OwningModuleRef : public OwningOpRef<ModuleOp> {
 public:
   using OwningOpRef<ModuleOp>::OwningOpRef;
+  OwningModuleRef() = default;
   OwningModuleRef(OwningOpRef<ModuleOp> &&other)
       : OwningOpRef<ModuleOp>(std::move(other)) {}
 };


        


More information about the llvm-branch-commits mailing list