[Mlir-commits] [mlir] ceff952 - [mlir][StorageUniquer] Fix build with LLVM_ENABLE_THREADS=OFF

Alexandre Ganea llvmlistbot at llvm.org
Sun Apr 2 08:39:15 PDT 2023


Author: Alexandre Ganea
Date: 2023-04-02T11:38:58-04:00
New Revision: ceff9524f92445b3110fb79f0d6239713b5df153

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

LOG: [mlir][StorageUniquer] Fix build with LLVM_ENABLE_THREADS=OFF

Added: 
    

Modified: 
    mlir/lib/Support/StorageUniquer.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Support/StorageUniquer.cpp b/mlir/lib/Support/StorageUniquer.cpp
index f6703185a4582..2e9b17e1e1c76 100644
--- a/mlir/lib/Support/StorageUniquer.cpp
+++ b/mlir/lib/Support/StorageUniquer.cpp
@@ -223,7 +223,7 @@ class ParametricStorageUniquer {
   BaseStorage *
   getOrCreate(bool threadingIsEnabled, unsigned hashValue,
               function_ref<bool(const BaseStorage *)> isEqual,
-              function_ref<BaseStorage *(StorageAllocator &)> ctorFn) {
+              function_ref<BaseStorage *()> ctorFn) {
     ParametricStorageUniquer::LookupKey lookupKey{hashValue, isEqual};
     return getOrCreateUnsafe(shard, lookupKey, ctorFn);
   }
@@ -231,8 +231,8 @@ class ParametricStorageUniquer {
   /// way.
   LogicalResult
   mutate(bool threadingIsEnabled, BaseStorage *storage,
-         function_ref<LogicalResult(StorageAllocator &)> mutationFn) {
-    return mutationFn(shard.allocator);
+         function_ref<LogicalResult()> mutationFn) {
+    return mutationFn();
   }
 
 private:


        


More information about the Mlir-commits mailing list