[llvm] r321837 - [ORC] Actually compare pointer values as advertised (rather than comparing ref

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 16:04:16 PST 2018


Author: lhames
Date: Thu Jan  4 16:04:15 2018
New Revision: 321837

URL: http://llvm.org/viewvc/llvm-project?rev=321837&view=rev
Log:
[ORC] Actually compare pointer values as advertised (rather than comparing ref
counts). Oops.

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=321837&r1=321836&r2=321837&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h Thu Jan  4 16:04:15 2018
@@ -89,7 +89,7 @@ public:
   }
 
   bool operator<(const SymbolStringPtr &Other) const {
-    return S->getValue() < Other.S->getValue();
+    return S < Other.S;
   }
 
   StringRef operator*() const { return S->first(); }




More information about the llvm-commits mailing list