From: Alexandre Ganea Date: Sun, 2 Apr 2023 15:38:58 +0000 (-0400) Subject: [mlir][StorageUniquer] Fix build with LLVM_ENABLE_THREADS=OFF X-Git-Tag: upstream/17.0.6~12930 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ceff9524f92445b3110fb79f0d6239713b5df153;p=platform%2Fupstream%2Fllvm.git [mlir][StorageUniquer] Fix build with LLVM_ENABLE_THREADS=OFF --- diff --git a/mlir/lib/Support/StorageUniquer.cpp b/mlir/lib/Support/StorageUniquer.cpp index f670318..2e9b17e 100644 --- a/mlir/lib/Support/StorageUniquer.cpp +++ b/mlir/lib/Support/StorageUniquer.cpp @@ -223,7 +223,7 @@ private: BaseStorage * getOrCreate(bool threadingIsEnabled, unsigned hashValue, function_ref isEqual, - function_ref ctorFn) { + function_ref ctorFn) { ParametricStorageUniquer::LookupKey lookupKey{hashValue, isEqual}; return getOrCreateUnsafe(shard, lookupKey, ctorFn); } @@ -231,8 +231,8 @@ private: /// way. LogicalResult mutate(bool threadingIsEnabled, BaseStorage *storage, - function_ref mutationFn) { - return mutationFn(shard.allocator); + function_ref mutationFn) { + return mutationFn(); } private: