OSDN Git Service

[ORC] Fix the counter type on SymbolStringPool entries.
authorLang Hames <lhames@gmail.com>
Sat, 6 Jan 2018 05:19:06 +0000 (05:19 +0000)
committerLang Hames <lhames@gmail.com>
Sat, 6 Jan 2018 05:19:06 +0000 (05:19 +0000)
Hopefully this will fix the build failure in
http://lab.llvm.org:8011/builders/llvm-mips-linux/builds/3417

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321926 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/Orc/SymbolStringPool.h

index 2cbe229..914e217 100644 (file)
@@ -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;