[llvm] r321926 - [ORC] Fix the counter type on SymbolStringPool entries.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 5 21:19:06 PST 2018


Author: lhames
Date: Fri Jan  5 21:19:06 2018
New Revision: 321926

URL: http://llvm.org/viewvc/llvm-project?rev=321926&view=rev
Log:
[ORC] Fix the counter type on SymbolStringPool entries.

Hopefully this will fix the build failure in
http://lab.llvm.org:8011/builders/llvm-mips-linux/builds/3417

Modified:
    llvm/trunk/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h?rev=321926&r1=321925&r2=321926&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h Fri Jan  5 21:19:06 2018
@@ -36,7 +36,7 @@ public:
   /// @brief Returns true if the pool is empty.
   bool empty() const;
 private:
-  using RefCountType = std::atomic<uint64_t>;
+  using RefCountType = std::atomic<size_t>;
   using PoolMap = StringMap<RefCountType>;
   using PoolMapEntry = StringMapEntry<RefCountType>;
   mutable std::mutex PoolMutex;




More information about the llvm-commits mailing list